January 29, 2003 Re: scanf, char*, access violation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Burton Radons | "Burton Radons" <loth@users.sourceforge.net> escribió en el mensaje | Here's your code, corrected: | | import c.stdio, string; | void main() { | char[] a; | char[80] b; | printf('hey: '); | scanf('%s',(char*)b); | printf('.'); | a=toString(b); | printf('%.*s'\n,a); | } | Thanks ------------------------- Carlos Santander http://carlos3.netfirms.com/ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 2003-01-27 |
Copyright © 1999-2021 by the D Language Foundation