Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 ( #11148422=note: print w/replies, xml ) Need Help??


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*

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11148422]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2023-02-07 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (39 votes). Check out past polls.

    Notices?