libcfe  0.12.1
some useful C-functions
mv.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int mv (const char *file, int file_len, const char *src, int src_len, const char *dest, int dest_len)
 

Function Documentation

◆ mv()

int mv ( const char *  file,
int  file_len,
const char *  src,
int  src_len,
const char *  dest,
int  dest_len 
)

Move a file from one directory to another.

Parameters
[in]fileThe name of the file to move.
[in]file_lenThe length of the file name, or 0 when unknown.
[in]srcThe source path where the file can be found.
[in]src_lenThe length of the source path, or 0 when unknown.
[in]destThe destination path where the file must be move to.
[in]dest_lenThe length of the destination path, or 0 when unknown.
Returns
return value:
  • 0 success
  • -1 failure

Definition at line 13 of file mv.c.

Here is the call graph for this function: