cynapses libc file functions
[cynapses libc API (internal)]

Functions

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

Function Documentation

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

copy a file from source to destination.

Parameters:
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.
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:
path The 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.
Generated on Mon Jul 5 22:58:37 2010 for doc by  doxygen 1.6.3