Complete.Org: Mailing Lists: Archives: freeciv-dev: May 1999:
Re: [Freeciv-Dev] GTK-client and snprintf
Home

Re: [Freeciv-Dev] GTK-client and snprintf

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] GTK-client and snprintf
From: Matt Busigin <jediknight@xxxxxxxxx>
Date: Tue, 11 May 1999 21:08:06 -0400 (EDT)

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.


[Prev in Thread] Current Thread [Next in Thread]