Difference between revisions of "Dbiclose()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
Line 11: Line 11:
 
 
 
<input parameter>
 
<input parameter>
char *ndx; /* .NDX file to be closed */
+
char *ndx; /* .NDX file to be closed */
  
 
<output parameters>
 
<output parameters>
Line 37: Line 37:
 
#include "dbl.h"
 
#include "dbl.h"
  
char *ndx; /* .NDX file descriptor */
+
char *ndx; /* .NDX file descriptor */
int rc; /* Return code */
+
int rc; /* Return code */
  
 
rc = dbiclose(ndx);
 
rc = dbiclose(ndx);
if (rc = = SUCCESS) printf("index closed n");
+
if (rc = = SUCCESS) printf("index closed \n");
  
 
else (
 
else (
printf("error number %d n");
+
printf("error number %d \n");
 
exit (1);
 
exit (1);
 
}
 
}

Latest revision as of 11:10, 1 May 2009

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()