On Fri, 12 Feb 1999 [EMAIL PROTECTED] wrote:
> Niels> Strange. snprintf should be more or less standard. (I don't have any
> Niels> ANSI-C reference, though).
> 
> v?snprintf() is not in any standard of which I am aware. It has become a
> de-facto standard because of the seurity issues with the whole STDIO
> library. As my earlier message stated, Solaris 2.6 and later have
> them. 2.5.1 has them, but hidden as internal-use-only functions.

If you need a portable (v)snprintf() implementation, try this one (from
Theo DeRaadt, of OpenBSD fame):

        http://www.theos.com/deraadt/snprintf.c

Like I begged before, -please- use this instead of __snprintf() and family
on 2.5.1; people upgrading their operating system shouldn't have to worry
about software that uses unpublished interfaces, and hence breaks.

-- 
Edward S. Marshall <[EMAIL PROTECTED]>       [ What goes up, must come down. ]
http://www.logic.net/~emarshal/               [ Ask any system administrator. ]

 Linux labyrinth 2.2.1+int+devfs #1 Thu Jan 28 22:34:25 CST 1999 i586 unknown
       10:50pm up 6 days, 9:45, 4 users, load average: 0.04, 0.06, 0.01

Reply via email to