Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!adm!JESUP@ge-crd.arpa From: JESUP@ge-crd.arpa (JESUP RANDELL) Newsgroups: comp.lang.c Subject: parameters Message-ID: <1472@brl-adm.ARPA> Date: Fri, 12-Dec-86 18:15:28 EST Article-I.D.: brl-adm.1472 Posted: Fri Dec 12 18:15:28 1986 Date-Received: Mon, 15-Dec-86 07:02:16 EST Sender: news@brl-adm.ARPA Lines: 20 Date: 12-DEC-1986 16:36 From: Randell Jesup Sender: JESUP Subject: parameters To: info-c@brl.arpa@smtp -------- > printf("\tc = %x, (char)uc = %x, (char)ucf() = %x\n", > c, (char)uc, (char)ucf()); >Ugh. %x expects an int, so the result of feeding it a char is, >*and ought to be*, UNDEFINED I was under the impression that chars are always converted to ints when passed as arguements, which is why the (char)uc works. Anyways, if (char)uc doesn't do the same thing as (char)ucf(), why? Randell Jesup jesup@ge-crd.arpa --------