1
0
mirror of https://github.com/rd235/cado synced 2024-12-27 06:24:11 +01:00
cado/file_utils.h
2016-08-09 17:46:05 +02:00

14 lines
438 B
C

#ifndef _FILE_UTILS_H
#define _FILE_UTILS_H
/* copyfile copies the file infd (from the current offset) to
outfd (from the current offset) */
/* the return value is the number of bytes copied */
ssize_t copyfile(int infd, int outfd);
/* copytemp copies the file whose path is 'inpath' in a temporary file
whose pathname has been created by mkstemp(3) using 'outtemplate; */
ssize_t copytemp(char *inpath, char *outtemplate);
#endif