Problem with snprintf()

Egor Duda
Wed Aug 9 00:07:00 GMT 2000


Wednesday, 09 August, 2000 Chris Faylor wrote:

>>>So snprintf() should always add a terminating \0.
>>And snprintf() may return -1 only in case of encoding error, not if the
>>string exceeds `size'.  So that is answered as well, IMO.

CF> So, have we come up with a patch for this behavior?

i've posted one in

i believe it'll make (v)snprintf C99-compliant

if there're no objections, will somebody kindly check it in?

Egor.   ICQ 5165414 FidoNet 2:5020/496.19

More information about the Newlib mailing list