[r6rs-discuss] Chez Scheme FFI question: returning structs
Eduardo Cavazos
wayo.cavazos at gmail.com
Wed Apr 28 22:39:13 EDT 2010
Hello,
Using the Chez Scheme FFI, what's a good way to bind to a C function
which returns a struct? Maybe I missed something in the docs, but it
doesn't appear to be straightforward.
For example, take a look at 'gsl_matrix_view_array':
http://www.gnu.org/software/gsl/manual/html_node/Matrix-views.html
gsl_matrix_view
gsl_matrix_view_array (double * base, size_t n1, size_t n2)
The type 'gsl_matrix_view' is a struct.
Ed
More information about the r6rs-discuss
mailing list