- (void) initLibrary:(NSInteger)magicNumber email:(NSString*)email;

You have to call initLibrary right away when you loaded the library (created an object).
You can omit this function in your code but in this case you cannot modify dbf files.
Passing valid parameters allows you to use CDBFAPI in read/write mode.


{
    cdbfapi *dbf = [cdbfapi new];
    [dbf initLibrary:12345 email:@"email@example.com"];
    // your code
    dbf = nil;
}