khiops
khiops copied to clipboard
An API closer to ANSI C for the drivers
Description
The fread method behaves differently from C ANSI, which does not return -1 and requires to use ferror:
- fread: https://en.cppreference.com/w/c/io/fread
- fwrite: https://en.cppreference.com/w/c/io/fwrite
It would be better to have the same behavior as C ANSI. To implement this, the driver API needs to be modified. We can start with the null driver in order to detect potential problems and after this step, we can specify the new driver API.
We should push this up, assuming latest khiops v10 is able to reject drivers whose major version is >0 (meaning implementing the new API)