[Tutor] can I pass a "structure" to a C function to init a C struct?

Edward Tsang ed_tsang@yahoo.com
Thu, 16 Sep 1999 14:43:50 -0700 (PDT)

A new question:
I'm trying this:
1) create something similar to C structure with a number of fields say
3 fields: a, b, c.
a will hold integer value
b will hold a string
c will hold a float
2) Python script will pass this to a C function called
initStruct through a wrapper function.
3)initStruct will initalise its a global structure according to a,b,and
c. its global structure also contains three fields: i,j,k. i being an
integer, j a string,, c a float. But they are C type.
4) it will return the values to python script
5) python script will know how to convert it back and display on screen

Can anyone tell me what is teh best way to do that? Is that possible???

What is the most appropriate method to create a 

Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com