Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.tech Subject: Re: I/O of complex data structures in C Message-ID: <6323@sugar.hackercorp.com> Date: 9 Aug 90 23:44:00 GMT References: <140087@sun.Eng.Sun.COM> <25884@mimsy.umd.edu> Reply-To: peter@sugar.hackercorp.com (Peter da Silva) Organization: Sugar Land Unix - Houston Lines: 18 In article dillon@overload.Berkeley.CA.US (Matthew Dillon) writes: > Why am I interjecting what has already been said? Because nobody has > yet explained the one point that confused the hell out of me when I > first started learning C, and that is WHY are there two size arguments?!! So it can return the number of ojbects written to be compatible with fread? :-> 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(). Sigh. -- Peter da Silva. `-_-' .