Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond!diamond From: diamond@diamond.csl.sony.junet (Norman Diamond) Newsgroups: comp.lang.c Subject: Re: In defense of scanf() (Re: Re^2: scanf(..)) Message-ID: <10397@socslgw.csl.sony.JUNET> Date: 20 Jun 89 06:00:56 GMT References: <225800176@uxe.cso.uiuc.edu> <11831@bloom-beacon.MIT.EDU> <824@cbnewsl.ATT.COM> <1134@vsi.COM> Sender: news@csl.sony.JUNET Reply-To: diamond@csl.sony.junet (Norman Diamond) Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan Lines: 22 In article <1134@vsi.COM> friedl@vsi.COM (Stephen J. Friedl) writes: >since strtok places NULs in the string, the >environment was getting corrupted for the child. >Neither of these are bugs -- they are documented parts of the >function -- but nevertheless we have been hit with these gotchas. You mean that these are design bugs instead of coding bugs. They are documented bugs instead of undocumented bugs. Just like gets() has some documented design bugs. Funny, existing practices that consisted of documented bugs really have been standardized. Only existing practices that consisted of quasi-documented but necessary features have been omitted from the standardization. -- Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.jp@relay.cs.net) The above opinions are claimed by your machine's init process (pid 1), after being disowned and orphaned. However, if you see this at Waterloo, Stanford, or Anterior, then their administrators must have approved of these opinions.