Mercurial > hg > CbC > CbC_gcc
comparison libiberty/vsnprintf.c @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
25 | 25 |
26 /* | 26 /* |
27 | 27 |
28 @deftypefn Supplemental int vsnprintf (char *@var{buf}, size_t @var{n}, const char *@var{format}, va_list @var{ap}) | 28 @deftypefn Supplemental int vsnprintf (char *@var{buf}, size_t @var{n}, const char *@var{format}, va_list @var{ap}) |
29 | 29 |
30 This function is similar to vsprintf, but it will print at most | 30 This function is similar to @code{vsprintf}, but it will write to |
31 @var{n} characters. On error the return value is -1, otherwise it | 31 @var{buf} at most @code{@var{n}-1} bytes of text, followed by a |
32 returns the number of characters that would have been printed had | 32 terminating null byte, for a total of @var{n} bytes. On error the |
33 @var{n} been sufficiently large, regardless of the actual value of | 33 return value is -1, otherwise it returns the number of characters that |
34 @var{n}. Note some pre-C99 system libraries do not implement this | 34 would have been printed had @var{n} been sufficiently large, |
35 correctly so users cannot generally rely on the return value if the | 35 regardless of the actual value of @var{n}. Note some pre-C99 system |
36 system version of this function is used. | 36 libraries do not implement this correctly so users cannot generally |
37 rely on the return value if the system version of this function is | |
38 used. | |
37 | 39 |
38 @end deftypefn | 40 @end deftypefn |
39 | 41 |
40 */ | 42 */ |
41 | 43 |