🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2636

C9X proposal for snprintf

#2636
From: Richard Browne
Date: Sun, 21 Apr 1996 17:12
17 lines
1194 bytes
This message is a call for interest/support in a proposal to C9X for
the inclusion of an 'snprintf' function in the C standard. Many
compilers already provide this function, but not all.

For those who aren't aware, the sprintf 'problem' is similar to the
famous gets, where the functions do not perform overflow checking on
the user supplied buffer.. leading to the possibility of random memory
overwrites and corruption. snprintf is analogous to sprintf. The
difference being that snprintf takes an extra parameter that specifies
the sizeof the format conversion buffer, and can thus guarantee that
the buffer will never overflow.

If you support this proposal, please respond here ot to direct to my
email address.

Richard Browne.
richb@sentor.com.au
Technical Details
Message-ID: <4ldq9r$5gf@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: richb@sentor.com.au (Richard Browne)
Newsgroups: comp.lang.c.moderated,comp.std.c
Subject: C9X proposal for snprintf
Date: 21 Apr 1996 12:12:27 -0500
Organization: Sentor Communications
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4ldq9r$5gf@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Newsreader: Forte Free Agent 1.0.82