home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!psinntp!dg-rtp!batman!goudreau
- From: goudreau@batman.rtp.dg.com (Bob Goudreau)
- Subject: Re: Exact-sized types (was Re: Typedefing builtin... thanks.)
- Message-ID: <1993Jan6.214625.16911@dg-rtp.dg.com>
- Sender: usenet@dg-rtp.dg.com (Usenet Administration)
- Date: Wed, 6 Jan 93 21:46:25 GMT
- References: <1992Nov30.204147.7955@cimage.com> <84931@ut-emx.uucp> <F9I0BER@math.fu-berlin.de>
- Organization: Data General Corporation, Research Triangle Park, NC
- Lines: 22
-
- In article <F9I0BER@math.fu-berlin.de> rene@hamel.uucp (Rene Mueller) writes:
- >In article <84931@ut-emx.uucp>, jamshid@ut-emx.uucp (Jamshid Afshar) writes:
- >|>
- >|> I don't understand the purpose of the "at-least-N-bits" types. C
- >|> already has those -- char (>=8), short (>=16), int (>=16), and long
- >|> (>=32). What does your extra level of indirection buy you?
- >
- > You are'nt correct:
-
- Actually, he is.
-
- > int is as long as a single machine word on the machine (on some
- > machines this means 12bit), on this machines also a short is 12bit
- > long and a long is 24bits long...
-
- Such compilers do not conform to the ISO C language standard, which
- mandates the minimum type sizes that he listed above.
-
- ----------------------------------------------------------------------
- Bob Goudreau Data General Corporation
- goudreau@dg-rtp.dg.com 62 Alexander Drive
- +1 919 248 6231 Research Triangle Park, NC 27709, USA
-