1 /*
2 **  USEFUL.H -- Some useful stuff.
3 **
4 **	@(#)useful.h	3.3	08/17/81
5 */
6 
7 # ifndef makedev
8 # include <sys/types.h>
9 # endif
10 
11 /* support for bool type */
12 typedef char	bool;
13 # define TRUE	1
14 # define FALSE	0
15 
16 # ifndef NULL
17 # define NULL	0
18 # endif NULL
19 
20 /* bit hacking */
21 # define bitset(bit, word)	((word) & (bit))
22 
23 /* define the types of some common functions */
24 extern char	*strcpy();
25 extern char	*strcat();
26 extern char	*malloc();
27 extern char	*index(), *rindex();
28 extern int	errno;
29 extern char	*sprintf();
30 extern long	time();
31 extern char	*ctime();
32 # ifndef V6
33 extern char	*getenv();
34 # endif
35