At 3:09 PM -0400 4/4/01, Anthony Randazzo wrote:
>I'm trying to write a parser where the data has some of the Extended
>ASCII characters. Does someone know how I can check my buffer.
>
>if (buffer[index] == '\0193') does not seem to work.

You do realize the '\###' notation uses octal, not decimal, numbers right?

So if you're looking for ASCII character 193 decimal, you would specify this as 
character constant '\301'. Another way to deal with this may be to cast an integer as 
a char, e.g. buffer[index] == (char)193.

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to