#include "statio.h"
FUNCTION c_stfdsi (fd, class_name, site_name, ic, is)
long *fd; char *class_name; char *site_name; long *ic; long *is;
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 site 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 site index. This is the site index that is required by other statistics I/O routines such as c_stget() and c_stput().
The c_stfdsi() routine first calls c_stfdcl() to get the class index. If that is successful, then it searches through each site of that 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 site, with the requested name. If they match, the indices of that class and site are returned.
c_stfdsi() returns
E_SUCC (0) --> successful search E_NOCLN (5) --> class name not found (no message) E_NOSIN (6) --> site name not found (no message) E_GNLIO (1) --> general I/O error (no message) E_INVNM (14) --> class or site name too long (no message)