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