move P_tmpdir from /usr/tmp to /var/tmp
[unix-history] / usr / src / include / string.h
CommitLineData
a9ff7213
KB
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
cff0a8c7 3 * All rights reserved.
91172f79 4 *
a9ff7213 5 * %sccs.include.redist.c%
cff0a8c7 6 *
eeacba3e 7 * @(#)string.h 5.9 (Berkeley) %G%
91172f79
RE
8 */
9
a9ff7213
KB
10#ifndef _STRING_H_
11#define _STRING_H_
17a87c14 12#include <machine/types.h>
a9ff7213
KB
13
14#ifdef _SIZE_T_
15typedef _SIZE_T_ size_t;
16#undef _SIZE_T_
17#endif
18
19#ifndef NULL
20#define NULL 0
21#endif
22
91befe9c 23#include <sys/cdefs.h>
a9ff7213 24
91befe9c
KB
25__BEGIN_DECLS
26void *memchr __P((const void *, int, size_t));
27int memcmp __P((const void *, const void *, size_t));
28void *memcpy __P((void *, const void *, size_t));
29void *memmove __P((void *, const void *, size_t));
30void *memset __P((void *, int, size_t));
31char *strcat __P((char *, const char *));
32char *strchr __P((const char *, int));
33int strcmp __P((const char *, const char *));
34int strcoll __P((const char *, const char *));
35char *strcpy __P((char *, const char *));
36size_t strcspn __P((const char *, const char *));
37char *strerror __P((int));
38size_t strlen __P((const char *));
39char *strncat __P((char *, const char *, size_t));
40int strncmp __P((const char *, const char *, size_t));
41char *strncpy __P((char *, const char *, size_t));
42char *strpbrk __P((const char *, const char *));
43char *strrchr __P((const char *, int));
44size_t strspn __P((const char *, const char *));
45char *strstr __P((const char *, const char *));
46char *strtok __P((char *, const char *));
47size_t strxfrm __P((char *, const char *, size_t));
a9ff7213
KB
48
49/* Nonstandard routines */
50#ifndef _ANSI_SOURCE
c09028b3
KB
51int bcmp __P((const void *, const void *, size_t));
52void bcopy __P((const void *, void *, size_t));
53void bzero __P((void *, size_t));
91befe9c
KB
54int ffs __P((int));
55char *index __P((const char *, int));
56void *memccpy __P((void *, const void *, int, size_t));
57char *rindex __P((const char *, int));
58int strcasecmp __P((const char *, const char *));
59char *strdup __P((const char *));
60void strmode __P((int, char *));
61int strncasecmp __P((const char *, const char *, size_t));
62char *strsep __P((char **, const char *));
eeacba3e 63void swab __P((const void *, void *, size_t));
6670c0eb 64#endif
91befe9c
KB
65__END_DECLS
66
a9ff7213 67#endif /* _STRING_H_ */