[racket] newbie: foreign C structure definition question

From: John Whittaker (john.whittaker at kc.rr.com)
Date: Thu Nov 4 00:45:17 EDT 2010

Hi Racket users,

I am new to Racket Scheme, but not new to Scheme in general.

I am trying to figure out how/if I can create a Racket C foreign
structure representation of the following simple C struct using
define-cstruct:

struct X
{
   int p1;
   char s1[32];
};


It is the nested array that I cannot figure how to represent.  I have
tried combing the Racket Guide and searched examples on the net, but I
have not found anything.  Does Racket support this or have I got too
much newbie ignorance?

Thanks,

John Whittaker


Posted on the users mailing list.