copy_stream.h

00001 /*
00002 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
00003 Copyright (C) 2005- The University of Notre Dame
00004 This software is distributed under the GNU General Public License.
00005 See the file COPYING for details.
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

Generated on 10 Apr 2014 for cctools by  doxygen 1.6.1