且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

允许 NULL arg 到 sscanf?

更新时间:1970-01-01 07:55:36

否:

匹配非空白序列人物;下一个指针必须是一个指向字符数组的指针足够长的时间来保存输入序列和终止空字符('\0'),它是自动添加的.输入字符串在空格处停止或在最大字段宽度,以先发生者为准.

Matches a sequence of non-white-space characters; the next pointer must be a pointer to character array that is long enough to hold the input sequence and the terminating null character ('\0'), which is added automatically. The input string stops at white space or at the maximum field width, whichever occurs first.

(http://linux.die.net/man/3/sscanf)