Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by syphilis (Archbishop)
on Nov 27, 2022 at 02:10 UTC ( [id://11148400]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    message = (EdjeMessageStringSet*) safemalloc( sizeof(EdjeMessageString
    +Set) + (count+1)*sizeof(char*) );
    
  2. or download this
    Newx( message, (sizeof(EdjeMessageStringSet) + (count+1)*sizeof(char*)
    +) / sizeof(char), char );
    
  3. or download this
    char ** p;
    EdjeMessageStringSet* message;
    ...
    Newx(message, 1, EdjeMessageStringSet;
    Newx(p, count + 1, char*);
    ...
    

Log In?
Username:
Password:

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

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

    No recent polls found