www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/07/08:30:57

Sender: tim AT picard DOT skynet DOT be
Message-ID: <3AF690E5.BBF60468@falconsoft.be>
Date: Mon, 07 May 2001 14:11:17 +0200
From: Tim Van Holder <tim DOT vanholder AT falconsoft DOT be>
Organization: Falcon Software NV
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-3 i686)
X-Accept-Language: en, nl-BE, nl
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: snprintf()
References: <3AF59D48 DOT 27972D7 AT jps DOT net>
Reply-To: djgpp AT delorie DOT com

Dennis Yelle wrote:
> 
> Does djgpp supply snprintf()?
> I can't find it in info.
> The header file \DJGPP\LANG\CXX\LIBIOP.H
> contains extern int _IO_vsnprintf __P ()
> but the strange name suggests to me that I am not
> supposed to call it directly.  Also, it is not
> in info either.
> 
> Is it OK for me to call _IO_vsnprintf directly?
> Is there anything I need to look out for if I do that?

_IO_vsnprintf is part of the C-stdio-with-streams interface of
the C++ library; basically it has all stdio functions (and variables
like stdin, stdout, stderr), but with an _IO_ prefix, and internally
using streams.
Using _IO_vsnprintf by itself should be OK, as it uses a string, not
a file. Checking the sources for gcc 3, I still see the declaration
for it, but there doesn't seem to be a source file that actually
defines it; so depending on it may be a bad idea.

-- 
Tim Van Holder - Falcon Software N.V.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
This message was posted using plain text. I do not endorse any
products or services that may be hyperlinked to this message.

- Raw text -


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