home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11592 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  4. Subject: Re: Curious bug...
  5. Message-ID: <9220802.5248@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <1992Jul22.050021.3974@uwm.edu> <1992Jul24.211127.23146@smallo.bo.open.de>
  9. Date: Sat, 25 Jul 1992 16:11:15 GMT
  10. Lines: 21
  11.  
  12. oklein@smallo.bo.open.de (Olaf Klein) writes:
  13. >I don't know the scope of a short in Quick-C, but if it's really
  14. >8-bits, which I could believe under DOS, then you loose the high
  15. >(attribute) byte of menu[][], but get the char after the actual as the
  16. >attribute char.
  17.  
  18. No, short is guaranteed to be at least 16 bits (or rather is guaranteed
  19. to have the equivalent range - it *could* be represented in bcd :-).
  20.  
  21. >Bye, Olaf
  22. >
  23. >PS. I don't think, that this program style is very portable, and the
  24. >exit code doesn't match the errno-code, 2 (ENOENT) should be appropriate...
  25.  
  26. Yes, I agree, the coding style was pretty horrific.
  27.  
  28. -- 
  29. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  30. This .signature VIRUS is a self-referential statement that is true - but 
  31. you will only be able to consistently believe it if you copy it to your own
  32. .signature file!
  33.