Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!huxley!steve From: steve@huxley.huxley.bitstream.com (Steve Stein) Newsgroups: comp.sys.mac.programmer Subject: Re: What's wrong with this??? Message-ID: Date: 5 Apr 91 17:54:24 GMT References: <1209@argosy.UUCP> Sender: steve@huxley.UUCP Reply-To: (Stephen Z. Stein) Organization: Bitstream, Inc. Lines: 14 In-reply-to: steve@huxley.huxley.bitstream.com's message of 5 Apr 91 14:08:37 GMT In article <1209@argosy.UUCP> jay@argosy.UUCP (Jay O'Conor) writes: > What is wrong with this statement? > > fprintf( logfile, (isascii(*cp) && isprint(*cp)) ? "[%c]" : [%02x]", *cp); ^ In my previous post I didn't notice that you need a quote here^. (If your real source is indeed missing that quote, I doubt THINK C would have compiled it.) If that's your problem, ignore my previous post! Sorry. - Steve Stein