|
|
|
|
 snprintf是否需要清空? - chunhui_true [ 2005-11-23 14:24 | 241 byte(s)]
 Re: snprintf是否需要清空? - teawater [ 2005-11-23 14:38 | 4 byte(s)]
 Re: snprintf是否需要清空? - chunhui_true [ 2005-11-23 14:59 | 70 byte(s)]
 Re: snprintf是否需要清空? - newroot [ 2005-11-29 00:11 | 31 byte(s)]
 Re: snprintf是否需要清空? - teawater [ 2005-11-29 09:57 | 70 byte(s)]
 Re: snprintf是否需要清空? - KingArthur [ 2005-11-29 08:56 | 70 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
假设我有个字符数组,想用snprintf写入一些东西。那么在这之前还用对这个字符数组清零么?
如:
char cc[123];
bzero(cc, sizeof(cc)); //这个有没有必要??
snprintf(cc, sizeof(cc), "asdfadsf");
|
|
|
----
解放思想 实事求是 实践出真知 SEIB
|
|
[Original]
[Print]
[Top]
|
|
|