Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by syphilis (Archbishop)
on Nov 24, 2022 at 13:29 UTC ( [id://11148356]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    struct _Edje_Message_String_Set
    {
       int count;
       char * str[];
    };
    
  2. or download this
    struct _Edje_Message_String_Set
    {
       int count;
       char ** str;
    };
    
  3. or download this
    # struct_char.pl #
    use strict;
    ...
    # Finally, foo() calls DESTROY() which frees the memory that
    # was assigned to create the EdjeMessageStringSet object.
    foo(\@in);
    
  4. or download this
    Size of _Edje_Message_String_Set struct: 16
    hello foo
    ...
    3
    Safefreed EdjeMessageStringSet object->str
    Safefreed EdjeMessageStringSet object
    

Log In?
Username:
Password:

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

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

    No recent polls found