kamesh3183 has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks,
I am writing a wrapper for a C function:
int fun1(FILE *, char *);
Can somebody tell me how to convert the Perl filehandle into a C FILE * ?
presently I am using code like this:
Thanks
Kamesh
I am writing a wrapper for a C function:
int fun1(FILE *, char *);
Can somebody tell me how to convert the Perl filehandle into a C FILE * ?
presently I am using code like this:
but the IoIFP is returning struct _PerlIO * type. Can anybody tell me how can I convert into FILE *?arg1 = IoIFP(sv_2io(ST(1));
Thanks
Kamesh
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: converting perl file handle into C FILE *
by merlyn (Sage) on Aug 31, 2005 at 18:12 UTC | |
Re: converting perl file handle into C FILE *
by Roger (Parson) on Aug 31, 2005 at 18:14 UTC |
Back to
Seekers of Perl Wisdom