c_stfdsi - Locates the class and site index given the class name and site name

SYNTAX

#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;

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.

site_name (input, character, length (*))

The site 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().

is (output, integer)

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

DESCRIPTION

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.

RETURN VALUE

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)