http://qs1969.pair.com?node_id=11148422


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.