Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Syntactic Confectionery Delight
 
PerlMonks  

Re: Perl XS

by ambrus (Abbot)
on Nov 18, 2013 at 23:52 UTC ( #1063221=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #ifndef INCLUDE__PRINTARRAYS_PRINTFUNC__H
    #define INCLUDE__PRINTARRAYS_PRINTFUNC__H
    ...
    
    #endif
    
  2. or download this
    #include <stdio.h>
    #include <string.h>
    ...
            }
    }
    
  3. or download this
    use ExtUtils::MakeMaker;
    
    ...
    );
    
    __END__
    
  4. or download this
    #include "EXTERN.h"
    #include "perl.h"
    ...
    print_array_char(array)
            const char *array
    
  5. or download this
    
    void
    ...
            print_array_int((const int *)arraypacked, len);
    
    
  6. or download this
    package PrintArrays;
    use warnings;
    ...
    }
    1;
    __END__
    
  7. or download this
    perl -I./blib/lib -I./blib/arch -we 'use PrintArrays qw(print_array_ch
    +ar print_array_int2); print_array_char("grt"); $arr = [42,52,12,46,68
    +]; print_array_int2($arr);'
    
  8. or download this
    Length of char array is 3,
    Element array[0] = g,
    ...
    Element array[2] = 12,
    Element array[3] = 46,
    Element array[4] = 68,
    
  9. or download this
    
    void
    ...
            print_array_int(arrayc, len);
            Safefree(arrayc);
            
    
  10. or download this
    perl -I./blib/lib -I./blib/arch -we 'use PrintArrays qw(print_array_in
    +t); $arr = [42,52,12,46,68]; print_array_int($arr);'
    
  11. or download this
    Length of int array is 5,
    Element array[0] = 42,
    ...
    Element array[2] = 12,
    Element array[3] = 46,
    Element array[4] = 68,
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-04-18 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (462 votes), past polls