SDS_NUMBYTES(3)
NAME
sds_data sds_fillvalue sds_datatype sds_datatypename
sds_data_length sds_numbytes sds_stream sds_sizeof
a set of functions to supply information about a SDS data
array
SYNOPSIS
#include <soi_sds.h>
void *sds_data (SDS *sds)
void *sds_fillvalue (SDS *sds)
int sds_datatype (SDS *sds)
char *sds_datatypename (int datatype)
long sds_data_length (SDS *sds)
int sds_numbytes (SDS *sds)
FILE *sds_stream (SDS *sds)
int sds_sizeof (int datatype)
DESCRIPTION
sds_data returns a pointer to the data array.
sds_fillvalue returns a pointer to the value representing
MISSING data.
sds_datatype returns an integer representing the type of
data stored in the data array.
sds_datatypename returns a string describing the type of
data associated with the numerical datatype.
sds_data_length returns the total number of values stored in
the data array
sds_numbytes returns the number of bytes associated with
each data value. If the sds pointer is null the routine
returns -1. If the data type is invalid (unset) the value
returned by sds_numbytes() is unpredictable.
sds_stream returns the file pointer found in the SDS struc-
ture.
sds_sizeof returns the number of bytes in a datum of type
datatype. sds_sizeof(sds_datatype(SDS *sds)) should be the
same as sds_numbytes(SDS *sds).
FILES
~CM/include/soi_sds.h
~CM/libsds.d/sds_query.c
~CM/libsds.d/sds_utility.c
SEE ALSO
BUGS
Validity of the information is not checked.
HISTORY
1998-01-28 SOI V 2.8