http://bbs.csdn.net/topics/300160076
这个帖子说没有啊[/quote]
it's ironic, isn't it? mymtom is the moderator of c/c++ board... [/quote]
what's the correct answer?
这个是很基本的问题,答案很明确的
C89
4.9.6.5 The sprintf function
Synopsis
#include <stdio.h>
int sprintf(char *s, const char *format, ...);
Description
The sprintf function is equivalent to fprintf , except that the
argument s specifies an array into which the generated output is to be
written, rather than to a stream. A null character is written at the
end of the characters written; it is not counted as part of the
returned sum. If copying takes place between objects that overlap,
the behavior is undefined.
Returns
The sprintf function returns the number of characters written in
the array, not counting the terminating null character.