[gambit-list] Questions about reading from a port and u8vector

Lam Luu luuxuanlam at gmail.com
Fri Jun 26 22:37:24 EDT 2009


Hello everyone,

I am working on ICFP programming contest. There is something I am really 
confused about.

Supposed that I have an input port, and I want to read the next 8 bytes 
as an IEEE 754 double value or a 32-bit unsigned integer, is there 
anyway to do this in Gambit? I mean, they are not string with digit '0' 
- '9', but actual representation of the number.

Secondly, is there anyway to pass an u8vector to a C-lambda, as a char* 
or whatever? The C Interface section of the manual only provides 
information about character string, but not u8vector. Is it possible to 
pass u8vector as char*?

Thank you very much,
Lam Luu



More information about the Gambit-list mailing list