2008/10/31 John Caron <car...@unidata.ucar.edu>:
I guess on some systems, size_t might be 64 bits, so how can I tell from Java in
a portable way?
use NativeLong and NativeLongByReference
A NativeLong is a C 'long' - i.e. 32bits on 32bit systems, 64bit on 64bit unix.
Kunal Shah wrote:
I believe it will be IntByReference since the comment says it's a length.
Thanks!
On Thu, Oct 30, 2008 at 4:06 PM, John Caron <car...@unidata.ucar.edu
<mailto:car...@unidata.ucar.edu>> wrote:
prototype:
int nc_inq_att(int ncid, int varid, const char *name, nc_type
*xtypep, size_t *lenp);
example:
int status; /* error status */
int ncid; /* netCDF ID */
int rh_id; /* variable ID */
nc_type vr_type; /* attribute types */
size_t vr_len; /* attribute lengths */
status = nc_inq_att (ncid, rh_id, "valid_range", &vr_type, &vr_len);
thanks for any help, very cool package!
---------------------------------------------------------------------
To unsubscribe, e-mail: user...@jna.dev.java.net
<mailto:user...@jna.dev.java.net>
For additional commands, e-mail: user...@jna.dev.java.net
<mailto:user...@jna.dev.java.net>