Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!decwrl!bacchus.pa.dec.com!granite.pa.dec.com!mwm From: mwm@raven.pa.dec.com (Mike (Real Amigas have keyboard garages) Meyer) Newsgroups: comp.sys.amiga.tech Subject: Re: I/O of complex data structures in C Message-ID: Date: 10 Aug 90 20:01:09 GMT References: <140087@sun.Eng.Sun.COM> <25884@mimsy.umd.edu> <6323@sugar.hackercorp.com> Sender: news@wrl.dec.com (News) Organization: Missionaria Phonibalonica Lines: 18 In-Reply-To: peter@sugar.hackercorp.com's message of 9 Aug 90 23:44:00 GMT In article <6323@sugar.hackercorp.com> peter@sugar.hackercorp.com (Peter da Silva) writes: What *I* want to know is why all the stdio routines put the FILE* at the end instead of the beginning so they can be compatible with fprintf. And explain the rationale for the assymetry between gets() and fgets(). Because some of them come from the Portable IO library, and were added to the Standard IO library afterwards for backwards compatability. BTW, use of gets() is considered a bug in some quarters (mostly those that lost a weekend to the internet worm).