BOOL createTable(cdbfapiPlus* handle, char* filename);

Function createTable() creates a new table. You have to prepare the structure with prepareNewTable and addField.
Another function allows you to create and open the table right away after creation.

BOOL createAndOpenTable(cdbfapiPlus* handle, char* filename);


// if (prepareNewTableX(dbf, 5, 1024, "dBase7driver"))
if (prepareNewTable(dbf, 0))
{
    addField(dbf, "ID", 'N', 10);
    addField(dbf, "NAME", 'C', 20);
    addField(dbf, "BIRTH", 'D', 8);
    addFieldX(dbf, "WEIGHT", 'N', 10, 2);

    // if (createAndOpenTable(dbf, "testfile.dbf")) 
    if (createTable(dbf, "testfile.dbf")) 
        printf("OK\n");
    else
        printf("Error\n");
}