void setByte(cdbfapiPlus* handle, int offset, char b);

You should not use setByte() and getByte().

char getByte(cdbfapiPlus* handle, int offset);


{
    // your code
}