The function getfieldsize returns the RMS table field size in byte and number of the field element by the 0 based field sequence number.
int getfieldsize (
int rmsHandle, // open RMS file handle
int fldidx, // 0 based field sequence number
int *nsize; // pointer to integer to store the field size
int *nelem // pointer to integer to store the number field elements
);
rmsHandle
Open RMS file handle
fldidx
0 based field sequence number
nsize
Pointer to the integer to store the field size
nelem
Pointer to the integer to store the number of field elements
On success, getfieldsize returns 0. If failed, it returns -1.
Call getfieldsize to get the data field size and is the number of elements by field sequence number before calling the data retrieving functions.