snprintf return value

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


In message <3DAFC8E4.3070804 at arm.com>
          Alex Waugh <Alex.Waugh at arm.com> 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.
-- 
John Tytgat, in his comfy chair at home                                 BASS
John.Tytgat at aaug.net                             ARM powered, RISC OS driven



More information about the gcc mailing list