|
doc
|
Macros | |
| #define | BUFFER_SIZE (16 * 1024) |
Functions | |
| int | c_compare_file (const char *f1, const char *f2) |
| int | c_copy (const char *src, const char *dst, mode_t mode) |
| int | c_isfile (const char *path) |
| int | c_rename (const char *src, const char *dst) |
| int c_compare_file | ( | const char * | f1, |
| const char * | f2 | ||
| ) |
Compare the content of two files byte by byte.
| f1 | Path of file 1 |
| f2 | Path of file 2 |
| int c_copy | ( | const char * | src, |
| const char * | dst, | ||
| mode_t | mode | ||
| ) |
copy a file from source to destination.
| src | Path to the source file |
| dst | Path to the destination file |
| mode | File creation mode of the destination. If mode is 0 then the mode from the source will be used. |
| int c_isfile | ( | const char * | path | ) |
Check if a path is a regular file or a link.
| path | The path to check. |
| int c_rename | ( | const char * | src, |
| const char * | dst | ||
| ) |
move a file from source to destination.
| src | Path to the source file |
| dst | Path to the destination file |
1.8.14