doc
Macros | Functions
cynapses libc file functions
cynapses libc API (internal)

Macros

#define BUFFER_SIZE   (16 * 1024)

Functions

int c_copy (const char *src, const char *dst, mode_t mode)
int c_isfile (const char *path)

Detailed Description


Macro Definition Documentation

#define BUFFER_SIZE   (16 * 1024)

Definition at line 40 of file c_file.h.


Function Documentation

int c_copy ( const char *  src,
const char *  dst,
mode_t  mode 
)

copy a file from source to destination.

Parameters:
srcPath to the source file
dstPath to the destination file
modeFile creation mode of the destination. If mode is 0 then the mode from the source will be used.
Returns:
0 on success, less then 0 on error with errno set. EISDIR if src or dst is a file.
int c_isfile ( const char *  path)

Check if a path is a regular file or a link.

Parameters:
pathThe path to check.
Returns:
1 if the path is a file, 0 if the path doesn't exist, is a something else or can't be accessed.