Mail Archives: djgpp/2001/05/07/08:30:57
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 -