|
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 |
References c_compare_file().
Referenced by c_compare_file().
| 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. |
References c_copy(), and mode.
Referenced by c_copy().
| int c_isfile | ( | const char * | path | ) |
Check if a path is a regular file or a link.
| path | The path to check. |
References c_isfile(), and path.
Referenced by c_isfile().
| 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 |
References c_rename().
Referenced by c_rename().