Hello,
Couple of things:
- If you are only reading a single float, buf0 doesn't need to be a pointer but just a float variable
- It looks like you have a "ssize_t *" before your call to e_read. That's incorrect. You should be assigning the return value of e_read to a variable, ignoring it, or directly comparing the value to sizeof(float).
Hope this help.