Dbmcreat()

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

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

PURPOSE

create a memo file


SYNOPSIS

#include "dbl.h"
 
	int	dbmcreat(dbtname)
 
	<input parameter>
	char	*dbtname;	/* Address of a buffer containing the name of a memo file to be created */
 
	<output parameter>
	none


RETURN VALUE

The dbmcreat() 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 creates a .DBT file. The memo file name must have the same base name as the database table that it belongs to.


EXAMPLE

The following example creates a .DBT file.


#include "dbl.h"
	rc = dbmcreat("memo.dbt");
	if (rc == SUCCESS) printf("memo file created \n");
	else {
		printf("error number %d \n", rc);
		exit (1);
	}


SEE ALSO

dbcreat(), dbicreat(), dbmclose(), dbmopen()