[A86] Re: Using hex values in strings?


[Prev][Next][Index][Thread]

[A86] Re: Using hex values in strings?



Andy Gombos writes:
> I have determined the correct vales, but how do I use them in a
> program?  Is it a simple matter of finding the character (in ISO
> Lating 8xxx) that corresponds to the value, or something else.

Look up the character code in this chart:

http://gladstone.uoregon.edu/~tsinger/link/TI-86/tokens.html

For example, to print PI, you would use 0xC4.  You can use it directly:

putchar(0xC4);

Or you can use it inside a string:

puts("PI: \304");

Note that the value is in octal.  When escaping values in a string in octal,
you must always use three digits.

-- 
David Phillips <david@acz.org>
http://david.acz.org/




References: