From: Ollivier.Robert@eurocontrol.fr (Ollivier Robert)
Subject: Re: snprintf() or vsnprintf() ?
Date: 1996/11/05 [thread overview]
Message-ID: <55npkr$4al@polaris.eurocontrol.fr> (raw)
In-Reply-To: 55nhh2$dd8$2@metro.atlanta.com
[courtesy cc of this posting sent to cited author via email]
In article <55nhh2$dd8$2@metro.atlanta.com>,
Curt Smith <curts@compgen.com> wrote:
> new'ish libc function; snprintf(). Philosophically similar to the string
> functions; strnxxx(), where you pass in the size of the recipient buffer.
> Does anyone know of availability from Unix OEMs or GNU/SFS places
> implimentations of sprintf and vsprintf that support the "n" varient?
There is one reasonnably portable in Mutt's source. It is an enhanced
version of Patrick Powell's one, posted in Bugtraq last year. The
enhancement is for "%N.Ms" support.
Some UNIX system already have it like all the *BSD, Linux, HP-UX (with a
security patch I think).
See below for pointers.
--
Ollivier ROBERT -=- Eurocontrol EEC/TS -=- Ollivier.Robert@eurocontrol.fr
Mutt: faster, smaller & better than Elm. <URL:http://www.cs.hmc.edu/~me/mutt/>
next prev parent reply other threads:[~1996-11-05 5:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-05 5:00 snprintf() or vsnprintf() ? Curt Smith
1996-11-05 5:00 ` Ollivier Robert [this message]
1996-11-05 5:00 ` Andrew Roach
1996-11-06 5:00 ` Curt Smith
1996-11-09 5:00 ` Bob Willcox
1996-11-15 5:00 ` Dave Butenhof
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox