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" 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 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk On Mon, 12 Sep 2005, Hans-Bernhard Broeker wrote: > A. Wik 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