7 messages in net.java.dev.jna.users[jna-users] How do I map size_t in C ...
FromSent OnAttachments
John CaronOct 30, 2008 2:06 pm 
Kunal ShahOct 30, 2008 2:40 pm 
John CaronOct 30, 2008 2:57 pm 
Wayne MeissnerOct 30, 2008 3:27 pm 
John CaronOct 30, 2008 3:35 pm 
Timothy WallOct 31, 2008 4:51 am 
John CaronOct 31, 2008 12:04 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[jna-users] How do I map size_t in C to Java?Actions...
From:John Caron (car@unidata.ucar.edu)
Date:Oct 30, 2008 2:06:32 pm
List:net.java.dev.jna.users

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!