Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles; site ea.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!inuxc!pur-ee!uiucdcs!ea!jejones From: jejones@ea.UUCP Newsgroups: net.lang.c Subject: Re: Randomly-Signed Character Variables - (nf) Message-ID: <5700015@ea.UUCP> Date: Mon, 10-Sep-84 14:36:00 EDT Article-I.D.: ea.5700015 Posted: Mon Sep 10 14:36:00 1984 Date-Received: Fri, 14-Sep-84 07:00:05 EDT References: <30@sdcsvax.UUCP> Lines: 13 Nf-ID: #R:sdcsvax:-3000:ea:5700015:000:459 Nf-From: ea!jejones Sep 10 13:36:00 1984 #R:sdcsvax:-3000:ea:5700015:000:459 ea!jejones Sep 10 13:36:00 1984 Sigh. "Characters" are glyphs, which are stored in some (machine-dependent) form internally. What C actually provides is a byte type. Programmers tend to use it as short short int, since on some machines it is treated as an eight-bit two's-complement number, and since one can't have arrays of bit fields. I would think that the standard should say that the behavior of "char" to int coercion is undefined, other than being a 1-1 mapping. James Jones