| [Freeciv-Dev] Re: snprintf, again[Top] [All Lists][Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
 
 Hello
>> I am curious though, what platforms don't have snprintf, and which have
>> vsnprintf but no snprintf?
> well, codewarior has the folowing variations in the stdio header
> fprintf
> printf
> sprintf
> vfprintf
> vprintf
> vsprintf
On the amiga (v)snprintf is avaible when using GNU C together with
ixemul.library.
It's not availble in the compiler I use for the ixemul free version
of freeciv. But it should be no problem for me to write an own
vsnprintf (which supports only those things needed for freeciv).
Maybe I also can take the one which is in the ixemul.library.
But I haven't looked in this source yet.
So I think (v)snprintf should be used where avaiable. If it is
not avaiable on a platform we can use David's idea with the buffer.
I really can't imagine that someone needs a string longer than
64kb.
Actually freeciv does sprintf on much smaller buffers and works fine,
so it cannot work worser with a 64kb or eveb higher buffer ;-)
bye,
Sebastian Bauer
 
 
Re: [Freeciv-Dev] snprintf, again, (continued)
Re: [Freeciv-Dev] snprintf, again, Alex Zepeda, 1999/08/23
Re: [Freeciv-Dev] snprintf, again, David Pfitzner, 1999/08/24
Re: [Freeciv-Dev] snprintf, again, Alex Zepeda, 1999/08/24
Re: [Freeciv-Dev] snprintf, again, David Pfitzner, 1999/08/25
Re: [Freeciv-Dev] snprintf, again, Alex Zepeda, 1999/08/25
Re: [Freeciv-Dev] snprintf, again, David Pfitzner, 1999/08/25
Re: [Freeciv-Dev] snprintf, again, Alex Zepeda, 1999/08/25
Re: [Freeciv-Dev] snprintf, again, David Pfitzner, 1999/08/25
Re: [Freeciv-Dev] snprintf, again, Alex Zepeda, 1999/08/25
Re: [Freeciv-Dev] snprintf, again, Andy Black, 1999/08/25
[Freeciv-Dev] Re: snprintf, again,
Sebastian Bauer <=
RE: [Freeciv-Dev] snprintf, again, Todd Goodman, 1999/08/26
RE: [Freeciv-Dev] snprintf, again, Alex Zepeda, 1999/08/27
RE: [Freeciv-Dev] snprintf, again, Todd Goodman, 1999/08/30
RE: [Freeciv-Dev] snprintf, again, Alex Zepeda, 1999/08/30
RE: [Freeciv-Dev] snprintf, again, Todd Goodman, 1999/08/31
Re: [Freeciv-Dev] snprintf, again, Falk Hueffner, 1999/08/26
 
 |  |