From -1048985508221258249
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ef92157550fe04a1
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2000-11-01 08:45:09 PST
Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!demon!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Jack Klein <jackklein@spamcop.net>
Newsgroups: comp.std.c++
Subject: Re: snprintf/vsnprintf
Date: Wed,  1 Nov 2000 16:43:51 GMT
Organization: AT&T Worldnet
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <7cH=OaEiVMdHg15jzgFt7T7KjZS9@4ax.com>
References: <zQ0L5.41331$KI6.8171531@typhoon.snet.net>
X-Trace: mail2news.demon.co.uk 973097047 mail2news:21170 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Authentication-Warning: backdraft.briar.org: smap set sender to <newsadm@att.net> using -f
X-Newsreader: Forte Agent 1.6/32.525
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Date: Wed, 01 Nov 2000 07:10:51 GMT
Lines: 24
Xref: supernews.google.com comp.std.c++:1848

On Mon, 30 Oct 2000 14:36:11 GMT, "Timur Aydin" <taydin@snet.net>
wrote in comp.std.c++:

> These are the safe versions of the standard "sprintf" and "vsprintf" and
> exist in the runtime libraries of some compilers. In addition to the
> arguments of the standard functions, these take an additional argument that
> specifies the size of the destination buffer to prevent writing beyond the
> end of the buffer. I think it would be beneficial to have this function part
> of the C and C++ standard specified. Here are some reasons:

Note that both of these functions are now part of the C standard,
since the adoption of the "C99" update about a year ago.

Jack Klein
-- 
Home: http://jackklein.home.att.net

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]
[ Note that the FAQ URL has changed!  Please update your bookmarks.     ]



