From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 16 May 2006 13:40:34 +0200 From: Martin Neubauer To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] strangely typed functions in standard library Message-ID: <20060516114034.GA22209@shodan.homeunix.net> References: <87f034ae0605152003x4d8ee664o4bef08473c10eef6@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87f034ae0605152003x4d8ee664o4bef08473c10eef6@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Topicbox-Message-UUID: 51a172d4-ead1-11e9-9d60-3106f5b1d025 * Matt Stewart (rotaerk1@gmail.com) wrote: > The following functions are described as accepting a Rune, but instead > the parameters are of type long. Why? > > int runelen(long); > char *utfrune(char *, long); > char *utfrrune(char *, long); > Though I'm far from being an expert on that matter, I would assume it's for the same reason putchar() takes an int.