Utils: new function to copy the content of a file into another file
This commit is contained in:
14
src/utils.h
14
src/utils.h
@ -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.
|
||||
|
Reference in New Issue
Block a user