Dbmclose()

From Recital Documentation Wiki
Revision as of 13:44, 1 May 2009 by Yvonnemilne (Talk | contribs)

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

PURPOSE

close memo file


SYNOPSIS

#include "dbl.h"
 
	int	dbmclose(dbt)
 
	<input parameter>
	char	*dbt;		/* File descriptor of a .DBT file to be closed */
 
	<output parameter>
	none


RETURN VALUE

The dbmclose() function returns 0 for success. See the section on return code values for a detailed list of return codes.


DESCRIPTION

This function closes a .DBT memo file.


EXAMPLE

The following example closes a .DBT file whose file descriptor is in "char *dbt".


#include "dbl.h"
	char	*dbt;		/* File descriptor of a .DBT file */
	int	rc;		/* Return code */
 
	rc = dbmclose(dbt);
	if (rc == SUCCESS)
		printf("the memo has been closed.\n");
	else {
		printf("error number %d \n", rc);
		exit (1);
	}


SEE ALSO

dbmopen(), dbmcreat()