On Thu, 24 Jun 2004 [EMAIL PROTECTED] wrote: > It's easier to just #define the critter than to re-re-invent the C code > for vsnprintf() (which isn't always trivial, as your vsnprintf() has to play > nice with the vendor's stdio - this can be .. umm... "interesting" if the > innards of the vendor stdio are more bizzare than usual...
vsnprintf() does not have to "play nice" with stdio. It does not have to play with stdio at all. You don't need to mess with stdio in order to stuff some characters into an array. > Go ahead - go and re-write a vsnprintf, and compare that to the time it > takes to do the #define It is rather easy as long as everything you need are common string and integer directives. Indeed, floats are tricky. Exotic C99 is even more tricky. But I think the set of printf features required by dhcpd and similar programs is (or should be) pretty small. --Pavel Kankovsky aka Peak [ Boycott Microsoft--http://www.vcnet.com/bms ] "Resistance is futile. Open your source code and prepare for assimilation." _______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.netsys.com/full-disclosure-charter.html
