Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Is this a sane/safe way to pass an aref into a C function?

by syphilis (Archbishop)
on Jan 21, 2017 at 22:56 UTC ( [id://1180097]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    int testing(int channel, SV* byte_ref, int len){
        SV ** elem;
    ...
            printf("%d\n", buf[x]);
        }
    }
    
  2. or download this
    try_pl_1bcb6.xs(10) : error C2057: expected constant expression
    try_pl_1bcb6.xs(10) : error C2466: cannot allocate an array of constan
    +t size 0
    try_pl_1bcb6.xs(10) : error C2133: 'buf' : unknown size
    NMAKE : fatal error U1077: 'cl' : return code '0x2'
    Stop.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-24 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found