Dbiclose()
From Recital Documentation Wiki
PURPOSE
close index file
SYNOPSIS
#include "dbl.h" int dbiclose(ndx) <input parameter> char *ndx; /* .NDX file to be closed */ <output parameters> none
RETURN VALUE
The dbiclose() function returns 0 for success, or < 0 if an error occurs. See the section on return code values for a detailed list of return codes.
DESCRIPTION
This function closes the specified index file.
EXAMPLE
The following example closes an .NDX file whose file descriptor is specified in "char *ndx".
#include "dbl.h" char *ndx; /* .NDX file descriptor */ int rc; /* Return code */ rc = dbiclose(ndx); if (rc = = SUCCESS) printf("index closed \n"); else ( printf("error number %d \n"); exit (1); }