next up previous
Next: setf_description() Up: Brain Volume I/O Handling Previous: scanf_description()

get_description_...()  

Get a specific data type from header description matching key



Synopsis


int 
get_description_int( header *h, char *lhs)
char 
get_description_char( header *h, char *lhs)
double
get_description_double( header *h, char *lhs)
int
get_description_string( header *h, char *lhs, char *dest)


Description
Search through all description strings to find the one that has a matching key (lhs). The corresponding value is scanned using sscanf and returned. get_description_string() copies the string to *dest.

On error, get_description_int() returns ERRINT (0x7fffffff), get_description_char() returns ERRCHAR (0xff) get_description_string() returns ERROR and get_description_double() returns ERRDBL (1.7976931348623157E+308) all defined in volio.h.

Usage

Revision


1.0  19/11-96   Ulrik Kjems Created


Program listing






Ulrik Kjems
6/3/1998