Re: [Freeciv-Dev] GTK-client and snprintf
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, 12 May 1999, David Pfitzner wrote:
#So does the Mutt snprint.c meet the above criteria? If so, some of us
#should be able to incorporate it into freeciv.
Why not use asprintf()?
char *buf;
asprintf( &buf, "Hello: %s %d\n", "weeee", 255 );
Automatically allocates enough space for the buffer. Why not? A lot
easier, IMHO. :-)
cheers,
matt
--
Matt Busigin - spod(at)ewtoo.org, jediknight(at)xwing.org
Don't take life seriously, you'll never get out alive.
|
|