Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.unix-wizards,net.lang.c Subject: Re: unsigned char -> unsigned int conversion Message-ID: <3961@utzoo.UUCP> Date: Tue, 19-Jun-84 17:54:25 EDT Article-I.D.: utzoo.3961 Posted: Tue Jun 19 17:54:25 1984 Date-Received: Tue, 19-Jun-84 17:54:25 EDT References: <2025@rlgvax.UUCP> Organization: U of Toronto Zoology Lines: 13 The C Reference Manual that's part of the K&R book is a little vague on the subject of what types "unsigned" can be applied to. In the detailed discussion it says that "unsigned int" is the only legitimate form, but elsewhere it implies the existence of "unsigned long" in some implementations. Note that even the V7 compiler accepts "unsigned short". I believe the draft ANSI C standard says that "unsigned" can be applied to "char", "short", "int", and "long". -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry