![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^5: Perl XS binding to a struct with an array of chars*by Marshall (Canon) |
on Nov 24, 2022 at 05:43 UTC ( #11148349=note: print w/replies, xml ) | Need Help?? |
Yeah, I remember seeing two different I/F definitions and being confused about which one was "truth". My C environment is a bit boogered at the moment so I wasn't able to run test code. But in any event, yes, safemalloc() with an explicit size calculation appears to be the correct API in this situation.
In Section
Seekers of Perl Wisdom
|
|