Commit | Line | Data |
---|---|---|
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 | * |
6124b236 | 7 | * @(#)string.h 5.10 (Berkeley) %G% |
91172f79 RE |
8 | */ |
9 | ||
a9ff7213 KB |
10 | #ifndef _STRING_H_ |
11 | #define _STRING_H_ | |
6124b236 | 12 | #include <machine/ansi.h> |
a9ff7213 KB |
13 | |
14 | #ifdef _SIZE_T_ | |
15 | typedef _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 |
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)); | |
a9ff7213 KB |
48 | |
49 | /* Nonstandard routines */ | |
50 | #ifndef _ANSI_SOURCE | |
c09028b3 KB |
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)); | |
91befe9c KB |
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 *)); | |
eeacba3e | 63 | void swab __P((const void *, void *, size_t)); |
6670c0eb | 64 | #endif |
91befe9c KB |
65 | __END_DECLS |
66 | ||
a9ff7213 | 67 | #endif /* _STRING_H_ */ |