Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

perl xs pass an array by reference

by andromedia33 (Novice)
on Dec 03, 2012 at 20:23 UTC ( #1006944=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #include "myfunction.h"
    double do_nothing(double *para)
    {
       return para[0];
    }
    
  2. or download this
    double do_nothing(double *)
    
  3. or download this
    #include "myfunction.h" (and the rest of the XSUB header files)
    
    ...
    
    double do_nothing(x)
       double * x
    
  4. or download this
    double * T_SV
    
  5. or download this
    my @array = (1.1,1.2);
    is(&myfunction::do_nothing(\@array),1.1);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1006944]
Approved by kcott
Front-paged by bulk88
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-04 21:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls