Article View: comp.lang.c.moderated
Article #2075Re: But DO C hackers code concisely?
From: Stan Ryckman
Date: Mon, 26 Feb 1996 12:50
Date: Mon, 26 Feb 1996 12:50
25 lines
1588 bytes
1588 bytes
In article <4gfe2b$32l@solutions.solon.com>, Paul Schlyter <pausch@electra.saaf.se> wrote: > >There is one good reason to allow sprintf/sscanf bot not printf/scanf in >a DLL: printf/scanf need to malloc() a memory buffer. sprintf/sscanf >need not do this, since they are given a memory buffer when called. Huh? Why is this a "good reason"? Are you saying that malloc() cannot be used in a DLL either? (I've never used DLL's, but it's beginning to sound to me that any claim that you can use "C" with them could be considered fraudulent.) Also, even if the reason for not having printf/scanf makes some sense (nowhere for the input to come from / output to go to), there surely would be a need for fprintf/fscanf, which surely require malloc() if printf/scanf do. I am not impressed by any of the arguments others have made pertaining to near vs. far pointers. Any sensible compiler could (and should) take care of that whenever #include <stdio.h> is present. Cheers, Stan. -- Stan Ryckman (stanr@tiac.net) (new e-mail address)
Technical Details
Message-ID:
<4gsaa6$418@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4fa7e7$2pu@solutions.solon.com> <4g27tf$qf6@solutions.solon.com> <4g54u4$anj@solutions.solon.com> <4gfe2b$32l@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: stanr@tiac.net (Stan Ryckman) Newsgroups: comp.lang.c.moderated Subject: Re: But DO C hackers code concisely? Date: 26 Feb 1996 06:50:14 -0600 Organization: Amber & Sneakers Fan Club Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4gsaa6$418@solutions.solon.com> References: <4fa7e7$2pu@solutions.solon.com> <4g27tf$qf6@solutions.solon.com> <4g54u4$anj@solutions.solon.com> <4gfe2b$32l@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com