#include "las.h"
FUNCTION c_getnum (block, param, count, len, buffer)
struct PARBLK *block; char *param; long *count; long *dtype; unsigned char *buffer;
TAE parameter block passed by reference. It is assumed that TAE has been initialized prior to calling c_getnum().
Defines the TAE parameter name in the TAE parameter block which contains the integer or real value(s).
Defines the number of entries in the parameter array specified by param to copy into buffer.
The parameter dtype describes the type of buffer to write into. If the PDF declares type INTEGER then dtype can be EBYTE, EWORD, or ELONG. If the PDF declares type REAL then dtype can be EREAL or EDOUBLE.
The integer or real value(s) in the TAE parameter block specified by param are copied into this part of memory. The buffer is written to in a format specified by dtype. It is assumed this memory has been allocated prior to calling c_getnum().
The c_getnum() routine returns TAE integer or real parameters in the TAE parameter block under the parameter name of param. It checks to see that the parameter name exists and does error checking on the data type. It does NOT return from these errors.
c_getnum() returns
It's return value is the number of entries actually read in. Return value 0 means the parameter has a "null value" and -1 means "no value".The routine may output other informational error messages.