[gambit-list] Passing heterogenous lists
Alex Shinn
alexshinn at gmail.com
Fri Jan 30 01:15:53 EST 2009
Hi,
Alex Ryu <ryu.alex at gmail.com> writes:
> I have written a C program calling scheme to evaluate logical and
> arithmetical expressions. It seems to work okay for integers, but
> floats have me at a loss. Short description of problem: I have a char
> buffer of known length. I know that the first four bytes represent a
> float, the second an int, the third an int, and so on. What I would
> like to do is somehow get this data into the scheme part of my
> program, preferably in a list form.
One option is SRFI-56, which describes a library for parsing
binary data, and includes a portable reference
implementation. It can handle both 32-bit and 64-bit IEEE
floats.
--
Alex
More information about the Gambit-list
mailing list