in reply to Re: Extending with C functions - some basic questions
in thread Extending with C functions - some basic questions
3. Can I pass a pointer to a function and have the C library call it
No. See perlcall for how to do it (it comes with several examples).
Well, the answer really is "Yes. See perlcall for how to do it" :)
You can do anything with XS, but you have to provide enough "glue" so that the code provided by your C library cooperates nice with the rest of perl interfaces.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extending with C functions - some basic questions
by Anonyrnous Monk (Hermit) on Dec 17, 2010 at 12:57 UTC | |
by unlinker (Monk) on Dec 17, 2010 at 13:50 UTC |