Difference between revisions of "Dbmcreat()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 11: | Line 11: | ||
<input parameter> | <input parameter> | ||
− | char *dbtname; /* Address of a buffer containing the name of a memo file to be created | + | char *dbtname; /* Address of a buffer containing the name of a memo file to be created */ |
<output parameter> | <output parameter> | ||
Line 37: | Line 37: | ||
#include "dbl.h" | #include "dbl.h" | ||
rc = dbmcreat("memo.dbt"); | rc = dbmcreat("memo.dbt"); | ||
− | if (rc = = SUCCESS) printf("memo file created n"); | + | if (rc == SUCCESS) printf("memo file created \n"); |
else { | else { | ||
− | printf("error number %d n", rc); | + | printf("error number %d \n", rc); |
exit (1); | exit (1); | ||
} | } |
Latest revision as of 13:45, 1 May 2009
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); }