Perl: the Markov chain saw | |
PerlMonks |
Re^13: Perl XS binding to a struct with an array of chars*by Marshall (Canon) |
on Nov 28, 2022 at 07:46 UTC ( [id://11148422]=note: print w/replies, xml ) | Need Help?? |
Yes, I would use a separate memory allocation assignment in the case of storing a pointer to that array in the struct (a char**) too. The other code that I showed puts the actual array into the structure - there is no pointer to the array because the array is right there.
In Section
Seekers of Perl Wisdom
|
|