Mail Archives: djgpp-workers/2000/11/13/15:23:47
>
> Hello.
>
> Please find below a first diff for adding snprintf(), based on Alain
> Magloire's code. Changes from Alain's code drop:
>
> * snprintf() & vsnprintf() avoid wrap-around in FILE's _cnt by returning
> EFBIG if 'n' is greater than INT_MAX.
>
> * Rewrote the docs a little, to make them clearer. (Hope you don't mind
> Alain. ;) )
I do not mind at all. And thank you for picking things up.
One thing, but my memory is failing (old age ?) it was about
_filbuf() or something, this was not clearly related to snprintf()
but it was trigger by it. stdio was trying to do fflush()
on _IOSTR buffer or refill its buffer, which it should not do.
Maybe Eli has a trace in its email archive about this.
BTW, nice job, unfortunately I can not test it for you.
--
au revoir, alain
----
Aussi haut que l'on soit assis, on n'est toujours assis que sur son cul !!!
- Raw text -