in reply to Re^12: Perl XS binding to a struct with an array of chars*
in thread Perl XS binding to a struct with an array of chars*

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.
  • Comment on Re^13: Perl XS binding to a struct with an array of chars*