int scanf_description( header *h, char *lhs, char *format, void *dest)
OK is returned on success, ERROR if either the matching lhs string is not found or if the sscanf() did not succeed.
float min;
header *hdr;
hdr = new_header();
read_header("myvolume.vol", hdr);
if (scanf_description(hdr, "min", "0.000000", &min) == OK)
print(STD, "File header says minimum scan value is 0.000000\n", min);
else
print(STD, "No information about scan minimum found in header.");
free_header(hdr);
1.0 29/10-96 Ulrik Kjems