[plt-scheme] v299 unicode -> (char *)

From: Ron Stanonik (stanonik at Cogsci.ucsd.edu)
Date: Mon Oct 25 18:22:03 EDT 2004

I'm porting an extension from v208 to v299.  Sorry, if this is dumb
question, but when scheme passes my extension a string, how do I get
a (char *) from the unicode (Scheme_Object *).  In the old days I just
SCHEME_STR_VAL(argv[0]).  SCHEME_CHAR_STR_VAL doesn't do it, it extracts
a (mzchar *).  SCHEME_BYTE_STR_VAL might do it, but then I would need
to convert from chars to bytes in scheme (I guess) before calling the


Ron StillInAscii
stanonik at cogsci.ucsd.edu

Posted on the users mailing list.