Mail Archives: djgpp/2005/09/12/12:08:13
On Mon, 12 Sep 2005, Hans-Bernhard Broeker wrote:
> A. Wik <djgpp-l AT aw DOT gs> wrote:
>
> > The libc.a reference documents this:
>
> *Which* reference was that? Are you sure it's the one that documents
> the version of the DJGPP libc you have?
The one at http://www.delorie.com/djgpp/doc/libc/
It doesn't seem to say which version it refers to,
but it's obviously not in sync with the DJGPP
release I have (2.03 with minor upgrades).
> > int snprintf (char *buffer, size_t n, const char *format,
> > ...);
>
> This only exists in the 2.04 development version of DJGPP.
>
> > if there was a difference, but there wasn't. According to
> > the GCC manual snprintf is built-in,
>
> I'm quite sure you're misinterpreting the GCC manual there.
I don't think so, and the compiler itself appears to agree
with my interpretation:
gcc -c -O2 -I. -o nasm.o nasm.c
nasm.c: In function 'main':
nasm.c:189: warning: incompatible implicit declaration of
built-in function 'snprintf'
However, the link error suggests it's not built-in after all.
Perhaps someone removed it and forgot to update the manual
and error messages.
-aw
- Raw text -