c_stdldt - Deletes a specified data item from a given node

SYNTAX

#include "statio.h"

FUNCTION c_stdldt (fd, data_type, ic, is)

     long               *fd;
     char               *data_type;
     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.

data_type (input, character, length (1:26))

The data type of the item to be deleted. See c_stput() for description of parameter data_type.

ic (input, integer)

The index of the class which the data belongs to. See c_stget() for description of parameter ic.

is (input, integer)

The index of the site to which the data belongs. See c_stget() for description of parameter is.

DESCRIPTION

The c_stdldt() routine deletes the specified data item using ic, is, and data_type to first locate the item. If found, it is deleted from the file. If site level data is deleted which makes a site empty, then the site is automatically removed from the file.

RETURN VALUE

c_stdldt() returns

     E_SUCC  (0) --> successful delete
     E_NOCL  (2) --> class is not found (no message)
     E_NOSI  (3) --> site is not found (no message)
     E_NODT  (4) --> datatype not found (no message)
     E_GNLIO (1) --> general I/O error (no message)