in reply to perlxs help
is mis-leading, because the first dimension of an array (MAX_LEN1) is ignored at the calling interface, only the second has any meaning. Having said that though, it appears that XS will not accept a multi-dimension array, so use something like this:unsigned char c[MAX_LEN1][MAX_LEN2]
#define MAX_LEN2 1024 int function1(a,b,p) int a unsigned short b unsigned char *p CODE: unsigned char (*c)[MAX_LEN2] = (unsigned char (*)[MAX_LEN2])p; OUTPUT: RETVAL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perlxs help
by KVB (Novice) on Jan 17, 2011 at 11:18 UTC |