Read and return a double (64 bits) Throws an exception of type (cfile_error *) if the OS returns an error on read
| 705 | // Read and return a double (64 bits) |
| 706 | // Throws an exception of type (cfile_error *) if the OS returns an error on read |
| 707 | double cf_ReadDouble(CFILE *cfp) { |
| 708 | double f; |
| 709 | cf_ReadBytes((uint8_t *)&f, sizeof(f), cfp); |
| 710 | return D3::convert_le<double>(f); |
| 711 | } |
| 712 | // Reads a string from a CFILE. If the file is type binary, this |
| 713 | // function reads until a NULL or EOF is found. If the file is text, |
| 714 | // the function reads until a newline or EOF is found. The string is always |
no test coverage detected