Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cuae2!ltuxa!ttrdc!levy From: levy@ttrdc.UUCP Newsgroups: comp.lang.c Subject: Re: Conversions/casts one more time Message-ID: <1402@ttrdc.UUCP> Date: Fri, 12-Dec-86 13:59:14 EST Article-I.D.: ttrdc.1402 Posted: Fri Dec 12 13:59:14 1986 Date-Received: Mon, 15-Dec-86 20:31:41 EST References: <176@unisoft.UUCP> <820@mtund.UUCP> Organization: AT&T, Computer Systems Division, Skokie, IL Lines: 15 In article <820@mtund.UUCP>, adam@mtund.UUCP writes: >Ugh. %x expects an int, so the result of feeding it a char is, >*and ought to be*, UNDEFINED. > Adam Reed (mtund!adam) In principle, yes; in practice all C compilers I've seen (what does the latest ANSI std. say?) convert chars to ints when passing them as arguments. -- ------------------------------- Disclaimer: The views contained herein are | dan levy | my own and are not at all those of my em- | an engihacker @ | ployer or the administrator of any computer | at&t computer systems division | upon which I may hack. | skokie, illinois | -------------------------------- Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa, allegra,ulysses,vax135}!ttrdc!levy