From mboxrd@z Thu Jan 1 00:00:00 1970 From: cowan@mercury.ccil.org (John Cowan) Date: Wed, 23 Jan 2013 16:46:51 -0500 Subject: [TUHS] History of strncpy In-Reply-To: References: <1301231756.AA27240@ivan.Harhan.ORG> Message-ID: <20130123214651.GF22559@mercury.ccil.org> Ronald Natalie scripsit: > Why does the FILE structure go as the first argument in some functions > (similar to the way UNIX tends to do things) and at the end of others? I think it goes at the end in every case except for varargs functions, where we wouldn't be able to know which one was last easily. > Why on earth did they preserve the silly fread/fwrite size feature > that just multiplies the two middle args together long after it was > realized that portability doesn't demand making such a distinction. I like the idea: essentially it's about reading or writing an array of a specified type. -- John Cowan cowan at ccil.org http://ccil.org/~cowan No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friends or of thine own were: any man's death diminishes me, because I am involved in mankind, and therefore never send to know for whom the bell tolls; it tolls for thee. --John Donne