Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by Marshall (Canon)
on Nov 24, 2022 at 03:31 UTC ( [id://11148347]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for (index = 0; index <= count; index++) {
            tmp = *av_fetch(val_arr,index,0);
            string = SvPVutf8(tmp,len);
            message->str[index] = savepvn(string,len);
    }
    
  2. or download this
    int n = count;
    char* p = &m.str;
    ...
      ....blah...
      *p++ = savepvn(string,len);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-18 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found