Dbiclose()

From Recital Documentation Wiki
Revision as of 10:37, 2 April 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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);
	}


SEE ALSO

dbclose(), dbicache(), dbiopen()