Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 chanting in the Monastery: (11)
As of 2015-09-05 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (156 votes), past polls