- or download this
#ifndef INCLUDE__PRINTARRAYS_PRINTFUNC__H
#define INCLUDE__PRINTARRAYS_PRINTFUNC__H
...
#endif
- or download this
#include <stdio.h>
#include <string.h>
...
}
}
- or download this
use ExtUtils::MakeMaker;
...
);
__END__
- or download this
#include "EXTERN.h"
#include "perl.h"
...
print_array_char(array)
const char *array
- or download this
void
...
print_array_int((const int *)arraypacked, len);
- or download this
package PrintArrays;
use warnings;
...
}
1;
__END__
- 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);'
- 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,
- or download this
void
...
print_array_int(arrayc, len);
Safefree(arrayc);
- 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);'
- 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,