Date: Sat, 22 Nov 2008 15:16:18 -0800 From: Gary Kline <kline@thought.org> To: FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG> Subject: trying to catch the triple '\0342', '\0200', '\0220' but cannot. Message-ID: <20081122231556.GA60364@thought.org>
next in thread | raw e-mail | index | archive | help
can somebody help me catch the OOo "'" (aposhtrophe)? It's a triplet of the hex chars, xe2, x80, x90, which should be seeable by getchar() [[or *not*?]]. The octal are 0342, 0200, and 0220. The first is, is a-circumflex. Why doesn't if ((ch1 = getchar()) == '\0342') or, more simply, if ((ch1 = getchar()) == '\342') catch the first? Is getchar limited to only 7 bytes?? tx, gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081122231556.GA60364>