🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3812

Re: gets() and getchar

#3812
From: Dan Pop
Date: Tue, 22 Aug 1995 00:34
20 lines
1235 bytes
In <9508211033.aa04645@kewszeg.UUCP> halasz@kewszeg.norden1.com writes:

>halasz@caip.rutgers.edu:
>: What is wrong with endouing "gets" with a limit?
>
>In article <412n2q$ka4@kruuna.helsinki.fi>, wirzeniu@cc.Helsinki.FI (Lars Wirzenius) writes:
>: Then it isn't compatible with the old gets and will break software.  Not good.
>: Reusing names for new purposes is not a good idea.
>
>There alreddie are special functions with optional arguments ....

Not in the C standard library.  There is no way to declare such a
function in C (the variadic approach doesn't work here).

Dan
--
Dan Pop
CERN, CN Division
Email: Dan.Pop@mail.cern.ch 
Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
Technical Details
Message-ID: <danpop.809051694@rscernix>
Path: arc1-ca.pugleaf.net!CERN.ch!rscernix!danpop
References: <Pine.ULT.3.91.950807194041.19202A-100000@mars> <412n2q$ka4@kruuna.helsinki.fi> <9508211033.aa04645@kewszeg.UUCP>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!CERN.ch!rscernix!danpop
From: Dan.Pop@mail.cern.ch (Dan Pop)
Subject: Re: gets() and getchar
X-Nntp-Posting-Host: ues5.cern.ch
Message-ID: <danpop.809051694@rscernix>
Sender: news@news.cern.ch (USENET News System)
Organization: CERN European Lab for Particle Physics
X-Newsreader: NN version 6.5.0 #9 (NOV)
References: <Pine.ULT.3.91.950807194041.19202A-100000@mars> <412n2q$ka4@kruuna.helsinki.fi> <9508211033.aa04645@kewszeg.UUCP>
Date: Tue, 22 Aug 1995 00:34:54 GMT