1 #ifndef TOOLLIB_FILESUP_H
2 #define TOOLLIB_FILESUP_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: Some nifty functions to help with files.
11 #ifndef TOOLLIB_TOOLLIB_H
12 #include <toollib/toollib.h>
17 returns: 0 for equal files,
18 1 for different files,
19 -1 for file 1 not present,
20 -2 for file 2 not present.
22 extern int filesdiffer
PARAMS(( char * file1
, char * file2
));
25 Compares old and new file. If the old file is not found, or
26 it is different from the new file, the new file will be
27 renamed to the name of the old file, and the old files will
32 extern int moveifchanged
PARAMS(( char *old
, char *new ));
35 Copy file src to file dest, returns 0 on success
37 extern int copy
PARAMS(( char *src
, char *dest
));
39 #endif /* TOOLLIB_FILESUP_H */