MGDBCREATE(3) Programmer's Manual MGDBCREATE(3)
NAME
MGdbCreate -- Creates a new database file and object
LIBRARY
MojaveGreen Software Co general utilities library (libMG, -lMG)
SYNOPSIS
#include <libMG.h>
classDb*
MGdbCreate(char* dbFileName, char* field0, char* field1, ..., NULL);
DESCRIPTION
Creates a new data base file and object. Pass the name/path of the file
you want created and the name of each data field and MGdbCreate will
return a classDb pointer to a data base object that contains one record.
The record (record #0) will contain the name of each field in each field
segment.
o char* dbFileName is a string containing path and name of the data
base file to be created
o char* field0 is a string containing the name of field #0.
o char* field1 is a string containing the name of field #1.
o "..." Add as many fields as are nessesary.
o The final parameter serve as a terminator and must be either 0 or
NULL.
RETURN VALUES
MGdbCreate() returns a classDb object pointer if successful and a file
will be created matching the classDb object; otherwise NULL is returned.
SEE ALSO
libMG(3)
AUTHORS
Michael C. Shultz <ringworm01@gmail.com>
FreeBSD JANUARY 7, 2004 FreeBSD
NAME - LIBRARY - SYNOPSIS - DESCRIPTION - RETURN VALUES - SEE ALSO -
AUTHORS -
|