1 /*
2 **  USEFUL.H -- Some useful stuff.
3 **
4 **	@(#)useful.h	3.6	12/05/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(), *strncpy();
25 extern char	*strcat(), *strncat();
26 extern char	*malloc();
27 extern char	*index(), *rindex();
28 extern int	errno;
29 extern char	*sprintf();
30 extern time_t	time();
31 extern char	*ctime();
32 # ifndef V6
33 extern char	*getenv();
34 # else V6
35 typedef char	*u_short;
36 typedef long	u_long;
37 typedef char	u_char;
38 typedef int	void;
39 # endif V6
40