unsigned char -> unsigned int conversion
Henry Spencer
henry at utzoo.UUCP
Wed Jun 20 07:54:25 AEST 1984
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
More information about the Comp.lang.c
mailing list