libite
|
Functions | |
char * | vreadsnf (char *line, size_t len, const char *fmt, va_list ap) |
Similar to readsnf() except it takes a va_list argument. More... | |
char * | readsnf (char *line, size_t len, const char *fmt,...) |
Read first line from a file composed from fmt and optional args. More... | |
int | writesf (const char *str, const char *mode, const char *fmt,...) |
Write a string buffer to a file composed from fmt and optional args. More... | |
int | vreadllf (long long *value, const char *fmt, va_list ap) |
Same as readllf() except it takes a va_list argument. | |
int | readllf (long long *value, const char *fmt,...) |
Read 64-bit integer value from a file composed from fmt and optional args. More... | |
int | readdf (int *value, const char *fmt,...) |
Read integer value from a file composed from fmt and optional args. More... | |
int | writellf (long long value, const char *mode, const char *fmt,...) |
Write 64-bit integer value to a file composed from fmt and optional args. More... | |
int | writedf (int value, const char *mode, const char *fmt,...) |
Write integer value to a file composed from fmt and optional args. More... | |
int readdf | ( | int * | value, |
const char * | fmt, | ||
... | |||
) |
Read integer value from a file composed from fmt and optional args.
value | Pointer to where to store read integer value. |
mode | An fopen() mode string, e.g. "w+". |
fmt | Formatted string to be composed into a pathname. |
int readllf | ( | long long * | value, |
const char * | fmt, | ||
... | |||
) |
Read 64-bit integer value from a file composed from fmt and optional args.
value | Pointer to where to store read 64-bit integer value. |
mode | An fopen() mode string, e.g. "w+". |
fmt | Formatted string to be composed into a pathname. |
char* readsnf | ( | char * | line, |
size_t | len, | ||
const char * | fmt, | ||
... | |||
) |
Read first line from a file composed from fmt and optional args.
line | Pointer to line buffer. |
len | Size of line buffer. |
fmt | Formatted string to be composed into a pathname. |
line
read from the file, with any trailing 'NULL
. char* vreadsnf | ( | char * | line, |
size_t | len, | ||
const char * | fmt, | ||
va_list | ap | ||
) |
int writedf | ( | int | value, |
const char * | mode, | ||
const char * | fmt, | ||
... | |||
) |
Write integer value to a file composed from fmt and optional args.
value | Integer value to write. |
mode | An fopen() mode string, e.g. "w+". |
fmt | Formatted string to be composed into a pathname. |
int writellf | ( | long long | value, |
const char * | mode, | ||
const char * | fmt, | ||
... | |||
) |
Write 64-bit integer value to a file composed from fmt and optional args.
value | 64-bit integer value to write. |
mode | An fopen() mode string, e.g. "w+". |
fmt | Formatted string to be composed into a pathname. |
int writesf | ( | const char * | str, |
const char * | mode, | ||
const char * | fmt, | ||
... | |||
) |
Write a string buffer to a file composed from fmt and optional args.
str | Pointer to string buffer, may be multiple lines. |
mode | An fopen() mode string, e.g. "w+". |
fmt | Formatted string to be composed into a pathname. |