#include "statio.h"
FUNCTION c_stfdcl (fd, class_name, ic)
long *fd; char *class_name; long *ic;
File descriptor of an opened statistics file. The file descriptor is set by c_stopen() and should not be altered.
The class name to search for.
The class index. This is the class index that is required by other statistics I/O routines such as c_stget() and c_stput().
The c_stfdcl() routine goes through each class looking for a record with the data type of name. If found, it compares the data in that record, which is the name of that class, with the requested name. If they match, the index of that class is returned.
c_stfdcl() returns
E_SUCC (0) --> successful search E_NOCLN (5) --> class name not found (no message) E_GNLIO (1) --> general I/O error (no message) E_INVNM (14) --> class name too long (no message)