The easy approach is to install and use Inline::C to generate the XS scaffolding for your code. After that, you throw away Inline::C and only use its output.
If you don't know how to install Inline::C, the easy approach is outlined in the following steps:
cpanm Inline::C
You now have Inline::C and its prerequisites installed in a local directory and can use Inline::C to generate much of the XS code for you.
In reply to Re^5: perl XS - passing array to C and getting it back
by Corion
in thread perl XS - passing array to C and getting it back
by kopolov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |