Utils: new function to copy the content of a file into another file

This commit is contained in:
Celine Mercier
2017-08-03 16:28:54 +02:00
parent 344566d9e9
commit 927c684fc2
2 changed files with 74 additions and 0 deletions

View File

@ -25,6 +25,20 @@
#define ONE_IF_ZERO(x) (((x)==0)?1:(x)) /**< If x is equal to 0, x takes the value 1.
*/
/**
* @brief Copy the content of a file into another file.
*
* @param src_file_path The path to the source file to copy.
* @param dest_file_path The path to the destination file.
*
* @retval 0 if the operation was successfully completed.
* @retval -1 if an error occurred.
*
* @since July 2017
* @author Celine Mercier (celine.mercier@metabarcoding.org)
*/
int copy_file(const char* src_file_path, const char* dest_file_path);
/**
* @brief Counts the number of digits of a number.