Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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: (7)
As of 2014-09-22 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (191 votes), past polls