delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/09/12/12:08:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Mon, 12 Sep 2005 16:04:48 +0000 (GMT)
From: "A. Wik" <djgpp-l AT aw DOT gs>
To: djgpp AT delorie DOT com
Subject: Re: snprintf() and others
In-Reply-To: <3ol9u2F6ga0sU1@news.dfncis.de>
Message-ID: <20050912152055.X78492@dynamite.narpes.com>
References: <20050912010645 DOT F78492 AT dynamite DOT narpes DOT com> <3ol9u2F6ga0sU1 AT news DOT dfncis DOT de>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019