int32 et al. (was: Style guides and portabili

Terry Poot tp at mccall.com
Sat Jan 19 04:01:41 AEST 1991


In article <867 at TALOS.UUCP>, jerry at TALOS.UUCP (Jerry Gitomer) writes:
>:Requirements:                   Use:
>: 1 <= bits <=  8, save space    char
>: 9 <= bits <= 16, save space    short
>: 1 <= bits <= 16, save time     int
>:17 <= bits <= 32                long

That's the way I do it. Note, however, that if you are dealing with
signed numbers, you MUST specify signed char, since the machine may
implement a char as unsigned. 
--
Terry Poot <tp at mccall.com>                The McCall Pattern Company
(uucp: ...!rutgers!ksuvax1!mccall!tp)     615 McCall Road
(800)255-2762, in KS (913)776-4041        Manhattan, KS 66502, USA



More information about the Comp.lang.c mailing list