|
发表于 2007-1-26 21:25:02
|
显示全部楼层
man scanf:- a (glibc) Indicates that the conversion will be s, the needed memory space for the string will be malloc’ed
- and the pointer to it will be assigned to the char pointer variable, which does not have to be initialized
- before. This flag does not exist in ANSI C (C89) and has a different meaning in C99.
- a (C99) Equivalent to f.
复制代码 |
|