
June 26, 2005
6:30 p.m.
On Mon, 2005-06-27 at 02:33 +0200, Nicolas Pernetty wrote:
Hello,
I would like to create a numarray array from a C buffer of 'int' but I don't quite know how to handle different 'int' representation (16 or 32 bits).
On the platforms we test on at least, int == Int32. This is even true for the 64-bit platforms I've seen.
For instante should I use :
int a[10][20]; x = NA_NewArray(a, tInt16, 2, 10, 20);
or : int a[10][20]; x = NA_NewArray(a, tInt32, 2, 10, 20);
Should I use some macro to determine size of int ?
You can do that with: sizeof(int) Regards, Todd