Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!seismo!nbires!vianet!devine From: devine@vianet.UUCP Newsgroups: comp.lang.c Subject: Re: Standard int sizes Message-ID: <170@vianet.UUCP> Date: Fri, 10-Apr-87 13:29:03 EST Article-I.D.: vianet.170 Posted: Fri Apr 10 13:29:03 1987 Date-Received: Sat, 11-Apr-87 19:27:16 EST References: <6759@brl-adm.ARPA> <230@ems.UUCP> Organization: Western Digital, Boulder Tech Ctr Lines: 17 > kyle@xanth.cs.odu.edu (kyle jones) wrote: > I would like to see the sizes of C integral types standardized. > One proposal might be: > char 8 bits > short 16 bits > int 32 bits > long 64 bits If you need to know exact sizes of types, you should define your own types using the preprocessor or typedefs. That is, if you need a 16 bit arithmetic type, use: If "machine has compiler that uses 16 bits for 'short'" #define int16 short If "machine has compiler that uses 16 bits for 'int'" #define int16 int