snprintf return value

John Tytgat John.Tytgat at
Fri Oct 18 12:50:24 PDT 2002

In message <3DAFC8E4.3070804 at>
          Alex Waugh <Alex.Waugh at> wrote:

> snprintf sometimes returns EOF when the buffer is not large enough; it
> should return the number of characters that would be written had the
> buffer been big enough. The following patch fixes this.

Spot the man who wants his code to be ISO99 compliant... ;-)

John Tytgat, in his comfy chair at home                                 BASS
John.Tytgat at                             ARM powered, RISC OS driven

More information about the gcc mailing list