xref: /original-bsd/include/string.h (revision c3e32dec)
1 /*-
2  * Copyright (c) 1990, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)string.h	8.1 (Berkeley) 06/02/93
8  */
9 
10 #ifndef _STRING_H_
11 #define	_STRING_H_
12 #include <machine/ansi.h>
13 
14 #ifdef	_BSD_SIZE_T_
15 typedef	_BSD_SIZE_T_	size_t;
16 #undef	_BSD_SIZE_T_
17 #endif
18 
19 #ifndef	NULL
20 #define	NULL	0
21 #endif
22 
23 #include <sys/cdefs.h>
24 
25 __BEGIN_DECLS
26 void	*memchr __P((const void *, int, size_t));
27 int	 memcmp __P((const void *, const void *, size_t));
28 void	*memcpy __P((void *, const void *, size_t));
29 void	*memmove __P((void *, const void *, size_t));
30 void	*memset __P((void *, int, size_t));
31 char	*strcat __P((char *, const char *));
32 char	*strchr __P((const char *, int));
33 int	 strcmp __P((const char *, const char *));
34 int	 strcoll __P((const char *, const char *));
35 char	*strcpy __P((char *, const char *));
36 size_t	 strcspn __P((const char *, const char *));
37 char	*strerror __P((int));
38 size_t	 strlen __P((const char *));
39 char	*strncat __P((char *, const char *, size_t));
40 int	 strncmp __P((const char *, const char *, size_t));
41 char	*strncpy __P((char *, const char *, size_t));
42 char	*strpbrk __P((const char *, const char *));
43 char	*strrchr __P((const char *, int));
44 size_t	 strspn __P((const char *, const char *));
45 char	*strstr __P((const char *, const char *));
46 char	*strtok __P((char *, const char *));
47 size_t	 strxfrm __P((char *, const char *, size_t));
48 
49 /* Nonstandard routines */
50 #ifndef _ANSI_SOURCE
51 int	 bcmp __P((const void *, const void *, size_t));
52 void	 bcopy __P((const void *, void *, size_t));
53 void	 bzero __P((void *, size_t));
54 int	 ffs __P((int));
55 char	*index __P((const char *, int));
56 void	*memccpy __P((void *, const void *, int, size_t));
57 char	*rindex __P((const char *, int));
58 int	 strcasecmp __P((const char *, const char *));
59 char	*strdup __P((const char *));
60 void	 strmode __P((int, char *));
61 int	 strncasecmp __P((const char *, const char *, size_t));
62 char	*strsep __P((char **, const char *));
63 void	 swab __P((const void *, void *, size_t));
64 #endif
65 __END_DECLS
66 
67 #endif /* _STRING_H_ */
68