Yes, "char *" will work fine. I updated my previous node to work with floats. The "char *" tells XS that you want a pointer to the string value of the scalar that was passed in. The pack produces a string that contains a C array of floats, so the address of that can just be typecasted to get a pointer to an array of floats.
- tye (but my friends call me "Tye")In reply to (tye)Re2: Passing References to Arrays into Perl Extensions in C
by tye
in thread Passing References to Arrays into Perl Extensions in C
by Evanovich
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |