home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19332 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.4 KB  |  34 lines

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