On Thu, Mar 23, 2006 at 05:23:37AM -0800, Yann POUPET wrote:
> Hi All,
> 
> 
> like snprintf(), the return value is 0 if all is fine, or the number
> of chars that would have been written if the buffer were big enough
> (thus if ret >= buflen, the buffer was certainly too short)

Uh, snprintf() only returns 0 if the result string was empty.  Surely you'll
return the number of bytes in the string (whether it fits or not), to
match snprintf(), strlcpy(), etc.?

Cheers,
- jonathan

-- 
Jonathan Adams, Solaris Kernel Development
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to