[lkml]   [2001]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Linux 2.4.6-ac5
At 1:27 AM +1000 2001-07-17, Andrew Morton wrote:
>Also, my manpage says that vsnprintf should return -1
>if it truncated the output. Your implementation
>doesn't do that, but trivially could.

My manpage says:

>Return value
> These functions return the number of characters printed
> (not including the trailing `\0' used to end output to
> strings). snprintf and vsnprintf do not write more than
> size bytes (including the trailing '\0'), and return -1 if
> the output was truncated due to this limit. (Thus until
> glibc 2.0.6. Since glibc 2.1 these functions follow the
> C99 standard and return the number of characters (exclud-
> ing the trailing '\0') which would have been written to
> the final string if enough space had been available.)

/Jonathan Lundell.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.274 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site