trying to catch the triple '\0342', '\0200', '\0220' but cannot.
Robert Huff
roberthuff at rcn.com
Sat Nov 22 15:21:00 PST 2008
Gary Kline writes:
> 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??
Perhaps you want getwc()?
Robert Huff
More information about the freebsd-questions
mailing list