CloseIFile

Incremental ISAM close.

Short Name

CLIFIL()

Type

ISAM function

Declaration

COUNT CloseIFile(pIFIL ifilptr)

Description

CloseIFile() closes the data file, and associated indexes, referenced in the IFIL structure pointed to by ifilptr.

Return

Value Symbolic Constant Explanation
0 NO_ERROR Successful close of ISAM files.
24 FCLS_ERR Could not close file number isam_fil.

See FairCom DB Error Codes for a complete listing of valid FairCom DB error values.

Example

extern IFIL     myfile;
       COUNT    retval;

if (retval = InitISAM(6,7,4))
    printf("\nCould not close files. Error %d.", retval);
else {
    if (OpenIFile(&myfile))
        printf("\nCould not open files.");
    else if (CloseIFile(&myfile))
        printf("\nCould not close files.");

   if (CloseISAM())
        printf("\nCould not close ISAM.");
}

See also

InitISAM, CreateIFile, OpenIFile, and CloseISAM. The ISAM Functions topic discusses the contents of the IFIL structure.