[plt-scheme] bytes, chars, mzchars

From: tom sgouros (tomfool at as220.org)
Date: Thu Jan 10 08:42:20 EST 2008

Matthew Flatt <mflatt at cs.utah.edu> wrote:
> 
> > For this application, I have a function that would like to receive a
> > single (8-bit) char value.
> 
> I'd use an exact integer in [0,255] for that, which corresponds to the
> `byte?' predicate in Scheme.

In the C code, then, you'd use SCHEME_INT_VAL() and just check that it's
in [0,255]?

Thanks,

 -tom


-- 
 ------------------------
 tomfool at as220 dot org
 http://sgouros.com  
 http://whatcheer.net


Posted on the users mailing list.