- Set a default PCM volume so that something can be heard when driver is
[AROS.git] / tools / toollib / filesup.h
blobefcdb3623056da6524c14cbddb7d156dd50d6baa
1 #ifndef TOOLLIB_FILESUP_H
2 #define TOOLLIB_FILESUP_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Some nifty functions to help with files.
9 */
11 #ifndef TOOLLIB_TOOLLIB_H
12 #include <toollib/toollib.h>
13 #endif
16 Compares two files
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
28 be renamed to old.bak
30 Returns 0 on success
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 */