File: checkfile.h

package info (click to toggle)
gramofile 1.6-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 820 kB
  • ctags: 536
  • sloc: ansic: 10,238; makefile: 55
file content (30 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Check file - Header

 * Copyright (C) 1998 J.A. Bezemer
 *
 * Licensed under the terms of the GNU General Public License.
 * ABSOLUTELY NO WARRANTY.
 * See the file `COPYING' in this directory.
 */

#ifndef HAVE_CHECKFILE_H
#define HAVE_CHECKFILE_H


#define FILE_EXISTS		1	/* The string contains the name 
					   of an existing file */
#define DIR_EXISTS		2	/* The string contains the name
					   of an existing directory */
#define DIR_OK_NEW_FILE		3	/* The string contains the name
					   of a new file, in an already
					   existing directory */
#define DIR_WRONG		4	/* The string contains the name
					   of a file with a non-existing
					   directory-path */

extern void strip_trailing_slashes (char *path);

extern int checkfile (char *filename);


#endif /* HAVE_CHECKFILE_H */