c_stfdcl - Locates the class index given the class name

SYNTAX

#include "statio.h"

FUNCTION c_stfdcl (fd, class_name, ic)

     long               *fd;
     char               *class_name;
     long               *ic;

PARAMETERS

fd (input, integer)

File descriptor of an opened statistics file. The file descriptor is set by c_stopen() and should not be altered.

class_name (input, character, length (*))

The class name to search for.

ic (output, integer)

The class index. This is the class index that is required by other statistics I/O routines such as c_stget() and c_stput().

DESCRIPTION

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.

RETURN VALUE

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)