35 log_warning(
"Attempting to close a file that isn't open.");
40 log_error(
"Unable to close the file: %s", strerror(errno));
void file_close(ifstream_t *file)
Release resources to the system.
Simplistic logging utilities.
#define log_warning(...)
Report an usual condition, not significant enough to abort the current operation.
#define log_error(...)
Report a condition causing the current operation to abort.
Dynamic string implementation.
bool opened
Is this file still open ?
int descriptor
Underlying file.
istream_t stream
Inherit from input stream.