Mail Archives: djgpp/2004/03/08/05:38:12
[..]
> From google:
>
> On Wed, 10 Jul 2002 00:25:55 CDT
> Charles Sandmann <sandmann AT clio DOT rice DOT edu> writes:
>
> >The program you are trying to build is using the routine snprintf(),
> >which is a relatively new call and not available in the v2.03
> >library.
>
> >You can either try the 2.04 work in progress library, or inspect the
> >code and see if you can get by with a simple define:
>
> >#define snprintf(a,b,c,d) sprintf(a,c,d)
>
> >This define assumes the string is long enough. snprintf() is a safe
> >sprintf call which you send the string length so you don't get buffer
> >overruns.
>
> An alternative that works in your sample program:
>
> http://www.ijs.si/software/snprintf/snprintf_2.2.tar.gz
>
> in string.c #include "snprintf.h"
>
> gcc -std=c99 -Wall -o string.exe snprintf.c string.c
>
Thanks. It worked.
>
> Hope this helps.
>
> --
> Roberto Quiroga
- Raw text -