P
Prathap
Hi:
I'm writing an application that requires perl to pass some data to C
function as a structure.
I have this structure in C:
struct test
{
int t1;
int t2;
}
The C function addStruct will add the contents of fields t1 and t2
and will return the result.
The C function addStruct takes pointer to structure as an input.
How do I make perl pass the data as pointer to structure kind of
variable?
I was trying with declaring a similar hash variable and passing the
hash referance to C function,
but it does not work.
I'm using perlxstut mechanism to get perl interact with C.
Please guide me to get this working.
Regards,
Prathap
I'm writing an application that requires perl to pass some data to C
function as a structure.
I have this structure in C:
struct test
{
int t1;
int t2;
}
The C function addStruct will add the contents of fields t1 and t2
and will return the result.
The C function addStruct takes pointer to structure as an input.
How do I make perl pass the data as pointer to structure kind of
variable?
I was trying with declaring a similar hash variable and passing the
hash referance to C function,
but it does not work.
I'm using perlxstut mechanism to get perl interact with C.
Please guide me to get this working.
Regards,
Prathap