1 /* 2 * Copyright 1993 University of Liverpool Computer Science Department 3 * 4 * Permission to use, copy, modify, and distribute this software and its 5 * documentation for any purpose and without fee is hereby granted, provided 6 * that the above copyright notice appear in all copies and that both that 7 * copyright notice and this permission notice appear in supporting 8 * documentation, and that the name of L.U.C.S. not be used in advertising 9 * or publicity pertaining to distribution of the software without specific, 10 * written prior permission. L.U.C.S. makes no representations about the 11 * suitability of this software for any purpose. It is provided "as is" 12 * without express or implied warranty. 13 * 14 * FILE NAME: file.h 15 * CREATED: Tue Oct 26 1993 16 * AUTHOR: Rik Turnbull 17 * DESCRIPTION: Header file for file.c. 18 * 19 */ 20 21 #ifndef COMMON_FILE_H 22 #define COMMON_FILE_H 1 23 24 #include <time.h> 25 26 extern int file_exists(char *); /* Does file exist? */ 27 extern int file_copy(char *, char *); /* UNIX cp command */ 28 extern char *file_load(char *, int *); /* Load whole file into memory */ 29 extern char *file_uncompress(char *); /* Uncompress a file */ 30 extern char *file_stdin(); /* Load stdin to memory */ 31 extern int file_stamp(char *, time_t); /* Stamp a file with data */ 32 33 #endif 34