#include "worgen.h" #include "dltf.h" #include "vll.h"FUNCTION c_ckdltf (host,key,fd)
char *host; char *key; long *fd;
Host file name of the DLTF. The return string has been "squeezed" for use in FORTRAN routines.
DLTF entry name. The return string contains the DLTF entry name in upper case so that it can be propagated to other support routines. Note that the length of the key is limited to twelve characters even though the file format allows sixteen. This is because LUT numbers are appended to the key value to form the names of the second type of DLTF records. Thus, the twelve characters with the maximum appended three characters plus one for null becomes the sixteen character maximum allowed in the key field of label services. The return string has also been "squeezed" for use in FORTRAN routines.
File descriptor to be used by c_w1dltf(), c_w2dltf(), and c_ckdltf(). The file descriptor is set in this routine and should not be altered. This parameter is assigned only if the duplicate entry check is unsuccessful (no duplication).
The c_ckdltf() call is used to check for duplicate DLTF entry names. If duplicate entry names do not exist, the routine will open the DLTF for output and return the file descriptor to be used in subsequent calls to c_w1dltf(), c_w2dltf(), and c_cldltf().
c_ckdltf() returns
E_SUCC (0) --> successful completion E_FAIL (-1) --> operation failed