Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 ( [id://11148349]=note: print w/replies, xml ) Need Help??


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

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.

  • Comment on Re^5: 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://11148349]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-23 11:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found