Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 ( #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? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2022-08-11 11:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?