func initLibrary(_ magicNumber: Int, email: String)
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.
{
var dbf = cdbfapi()
if dbf <> nil { return }
dbf.initLibrary(12345, "email@example.com")
// your code
dbf = nil
}