|
qLibc
|
Counter file handling APIs. More...
Go to the source code of this file.
Functions | |
| int64_t | qcount_read (const char *filepath) |
| Read counter(integer) from file with advisory file locking. More... | |
| bool | qcount_save (const char *filepath, int64_t number) |
| Save counter(integer) to file with advisory file locking. More... | |
| int64_t | qcount_update (const char *filepath, int64_t number) |
| Increases(or decrease) the counter value as much as specified number with advisory file locking. More... | |
Counter file handling APIs.
Definition in file qcount.c.
| int64_t qcount_read | ( | const char * | filepath | ) |
Read counter(integer) from file with advisory file locking.
| filepath | file path |
| bool qcount_save | ( | const char * | filepath, |
| int64_t | number | ||
| ) |
Save counter(integer) to file with advisory file locking.
| filepath | file path |
| number | counter integer value |
| int64_t qcount_update | ( | const char * | filepath, |
| int64_t | number | ||
| ) |
Increases(or decrease) the counter value as much as specified number with advisory file locking.
| filepath | file path |
| number | how much increase or decrease |