TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Alex Stivala
from: David Nugent
date: 1995-10-08 05:15:48
subject: Variable Arguments

DN>> ISO will soon to introducing a new interface to the 
DN>> v?printf() family cal v?nprintf(), where you can specify the 
DN>> destination buffer size and theref avoid buffer overflow - 
DN>> something that you can only guard against current by defining 
DN>> large buffers. No compilers that I am currently aware of 
DN>> incl it (yet).

 AS> SAS/C 370 (for MVS and VM/CMS) has had vsnprintf() since at least
 AS> version 4.50.

Well, sure, but I find that particular fact singularly unimportant (no
offense intended).

If your intention is to write portable code, and you don't find the
prospect of source code littered with #ifdef's, the inclusion of something
into a language standard is *definitely* good news since the standard will
require it in compilers which purport to adhere to it.

IMHO, this is long overdue with respect to the C formatting functions.

---
* Origin: Unique Computing: Melbourne, Australia (3:632/348)
SEEN-BY: 50/99 620/243 623/630 632/103 348 998 633/371 634/384 388 635/301
SEEN-BY: 635/502 503 544 727 639/100 711/401 409 410 413 430 510 807 808 809
SEEN-BY: 711/932 934 712/515 713/888 714/906 800/1 7877/2809
@PATH: 632/103 348 635/503 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.