Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: snprintf() or vsnprintf() ?
  1996-11-05  5:00 snprintf() or vsnprintf() ? Curt Smith
@ 1996-11-05  5:00 ` Ollivier Robert
  1996-11-05  5:00 ` Andrew Roach
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Ollivier Robert @ 1996-11-05  5:00 UTC (permalink / raw)



    [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/>




^ permalink raw reply	[flat|nested] 6+ messages in thread

* snprintf() or vsnprintf() ?
@ 1996-11-05  5:00 Curt Smith
  1996-11-05  5:00 ` Ollivier Robert
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Curt Smith @ 1996-11-05  5:00 UTC (permalink / raw)
  Cc: eric, dima


At the local Unix User's Group meeting, there was brief mention of the 
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?

Thanks.


Curt Smith
curts@compgen.com




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: snprintf() or vsnprintf() ?
  1996-11-05  5:00 snprintf() or vsnprintf() ? Curt Smith
  1996-11-05  5:00 ` Ollivier Robert
@ 1996-11-05  5:00 ` Andrew Roach
  1996-11-06  5:00 ` Curt Smith
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Andrew Roach @ 1996-11-05  5:00 UTC (permalink / raw)



In article <55nhh2$dd8$2@metro.atlanta.com>, curts@compgen.com (Curt Smith) writes:
|> At the local Unix User's Group meeting, there was brief mention of the 
|> 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?
|> 
|> Thanks.
|> 
|> 
|> Curt Smith
|> curts@compgen.com
|> 

The next version of Solaris will have them. I've also submitted them to
X/Open for inclusion in the next definition of XPGx & UNIX(tm)

Andy



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: snprintf() or vsnprintf() ?
  1996-11-05  5:00 snprintf() or vsnprintf() ? Curt Smith
  1996-11-05  5:00 ` Ollivier Robert
  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
  4 siblings, 0 replies; 6+ messages in thread
From: Curt Smith @ 1996-11-06  5:00 UTC (permalink / raw)



Curt Smith (curts@compgen.com) wrote:
: At the local Unix User's Group meeting, there was brief mention of the 
: 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?

So far I've found an implimentation in the mail agent called: mutt

http://www.cs.hmc.edu/~me/mutt/

Curt Smith
curts@compgen.com




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: snprintf() or vsnprintf() ?
  1996-11-05  5:00 snprintf() or vsnprintf() ? Curt Smith
                   ` (2 preceding siblings ...)
  1996-11-06  5:00 ` Curt Smith
@ 1996-11-09  5:00 ` Bob Willcox
  1996-11-15  5:00 ` Dave Butenhof
  4 siblings, 0 replies; 6+ messages in thread
From: Bob Willcox @ 1996-11-09  5:00 UTC (permalink / raw)



In article <55q3vu$esc$1@metro.atlanta.com>,
	curts@compgen.com (Curt Smith) writes:
> Curt Smith (curts@compgen.com) wrote:
>: At the local Unix User's Group meeting, there was brief mention of the 
>: 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?
> 
> So far I've found an implimentation in the mail agent called: mutt
> 
> http://www.cs.hmc.edu/~me/mutt/
> 

FreeBSD, as well as (I supose) the other BSD's, support the snprintf()
functions.

-- 
Bob Willcox	       politics, n:
bob@luke.pmr.com         A strife of interests masquerading as a contest of
Austin, TX               principles.  The conduct of public affairs for private
                         advantage.       -- Ambrose Bierce



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: snprintf() or vsnprintf() ?
  1996-11-05  5:00 snprintf() or vsnprintf() ? Curt Smith
                   ` (3 preceding siblings ...)
  1996-11-09  5:00 ` Bob Willcox
@ 1996-11-15  5:00 ` Dave Butenhof
  4 siblings, 0 replies; 6+ messages in thread
From: Dave Butenhof @ 1996-11-15  5:00 UTC (permalink / raw)



> Curt Smith (curts@compgen.com) wrote:
> At the local Unix User's Group meeting, there was brief mention of the 
> 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?

Digital UNIX (at least in 4.0) includes the functions in libsecurity.
It would seem logical to move them into libc in the future.

/---[ Dave Butenhof ]-----------------------[ butenhof@zko.dec.com ]---\
| Digital Equipment Corporation           110 Spit Brook Rd ZKO2-3/Q18 |
| 603.881.2218, FAX 603.881.0120                  Nashua NH 03062-2698 |
\-----------------[ Better Living Through Concurrency ]----------------/



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1996-11-15  5:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-05  5:00 snprintf() or vsnprintf() ? Curt Smith
1996-11-05  5:00 ` Ollivier Robert
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox