Re: g_snprintf() implementation




On 21 Apr 1999, Raja R Harinath wrote:
> 
> Actually, I would like it to return the length that would have been
> formatted if there had been enough space -- this is what the snprintf
> in GLIBC and Solaris 2.6 are documented as doing. 
>

The glibc docs say that, but the old man pages don't. I guess they are
for libc5, I don't know. 

Seems like nice behavior. I'm not sure we can trust vsnprintf() to work
this way; a configure check might be in order.

Havoc

 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]