copy_stream.h
00001
00002
00003
00004
00005
00006
00007
00008 #ifndef COPY_STREAM_H
00009 #define COPY_STREAM_H
00010
00011 #include <stdio.h>
00012
00013 int copy_stream_to_stream(FILE * input, FILE * output);
00014 int copy_stream_to_buffer(FILE * input, char **buffer);
00015 int copy_stream_to_fd(FILE * input, int fd);
00016 int copy_fd_to_stream(int fd, FILE * output);
00017 int copy_buffer_to_stream(char * buffer, FILE * output, int buffer_size);
00018 void copy_fd_pair(int leftin, int leftout, int rightin, int rightout);
00019 int copy_file_to_file(const char *input, const char *output);
00020 int copy_file_to_buffer(const char *filename, char **buffer);
00021
00022 #endif