🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: But DO C hackers code concisely?

#2064
From: Richard Wells
Date: Sat, 17 Feb 1996 18:17
27 lines
1806 bytes
Robert F. Monroe wrote:
: 
: In article: <4fst4u$2f1@solutions.solon.com>  Michael Smith <msmith@mpx.com.au> writes:
: 
: > When you build a DLL using MS Visual C/C++, a number of
: > standard library functions are not permitted - including the printf
: > and scanf family.  Thus, when developing Windows tools it is unwise
: > to rely on these functions - you might want to include the tools in
: > a DLL.
: >
: > Yes I do think that MS leaving these functions out is realy stupid,
: > but you have to work with the tools you have.
: 
: What conceivable use could there be for either printf or scanf in a
: Windows DLL? The very nature of Windows I/O would cause them to only
: produce garbage. I can't think of any reason why they would be in
: a Windows library (with the exception of a 'QuickWin' type program, but
: that is a different story and printf and scanf are in those libraries).

Note that Michael Smith said the printf and scanf *families* of
functions; these include sprintf and sscanf.

Microsoft does supply the - almost - similar wsprintf and vwsprintf
functions as part of the Windows API, but these are poor substitutes.

We're straying from system-independent C here; I would suggest sending
followups to comp.os.ms-windows.programmer.misc.
Technical Details
Message-ID: <4g563s$b9q@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4fa7e7$2pu@solutions.solon.com> <4fst4u$2f1@solutions.solon.com> <4fvh88$e3l@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: Richard Wells <rdwells@mmm.com>
Newsgroups: comp.lang.c.moderated
Subject: Re: But DO C hackers code concisely?
Date: 17 Feb 1996 12:17:32 -0600
Organization: 3M Company
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4g563s$b9q@solutions.solon.com>
References: <4fa7e7$2pu@solutions.solon.com> <4fst4u$2f1@solutions.solon.com> <4fvh88$e3l@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Mailer: Mozilla 2.0b6a (WinNT; I)