Annotation of prex-old/usr/include/string.h, Revision 1.1.1.1
1.1 nbrk 1: /*-
2: * Copyright (c) 1990, 1993
3: * The Regents of the University of California. All rights reserved.
4: *
5: * Redistribution and use in source and binary forms, with or without
6: * modification, are permitted provided that the following conditions
7: * are met:
8: * 1. Redistributions of source code must retain the above copyright
9: * notice, this list of conditions and the following disclaimer.
10: * 2. Redistributions in binary form must reproduce the above copyright
11: * notice, this list of conditions and the following disclaimer in the
12: * documentation and/or other materials provided with the distribution.
13: * 3. Neither the name of the University nor the names of its contributors
14: * may be used to endorse or promote products derived from this software
15: * without specific prior written permission.
16: *
17: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27: * SUCH DAMAGE.
28: *
29: * @(#)string.h 8.1 (Berkeley) 6/2/93
30: */
31:
32: #ifndef _STRING_H_
33: #define _STRING_H_
34: #include <machine/ansi.h>
35:
36: #ifdef _BSD_SIZE_T_
37: typedef _BSD_SIZE_T_ size_t;
38: #undef _BSD_SIZE_T_
39: #endif
40:
41: #ifndef NULL
42: #define NULL 0
43: #endif
44:
45: #include <sys/cdefs.h>
46:
47: __BEGIN_DECLS
48: void *memchr(const void *, int, size_t);
49: int memcmp(const void *, const void *, size_t);
50: void *memcpy(void *, const void *, size_t);
51: void *memmove(void *, const void *, size_t);
52: void *memset(void *, int, size_t);
53: char *strcat(char *, const char *);
54: char *strchr(const char *, int);
55: int strcmp(const char *, const char *);
56: int strcoll(const char *, const char *);
57: char *strcpy(char *, const char *);
58: size_t strcspn(const char *, const char *);
59: char *strerror(int);
60: size_t strlen(const char *);
61: char *strncat(char *, const char *, size_t);
62: int strncmp(const char *, const char *, size_t);
63: char *strncpy(char *, const char *, size_t);
64: char *strpbrk(const char *, const char *);
65: char *strrchr(const char *, int);
66: size_t strspn(const char *, const char *);
67: char *strstr(const char *, const char *);
68: char *strtok(char *, const char *);
69: char *strtok_r(char *, const char *, char **);
70: size_t strxfrm(char *, const char *, size_t);
71:
72: /* Nonstandard routines */
73: #ifndef _ANSI_SOURCE
74: int bcmp(const void *, const void *, size_t);
75: void bcopy(const void *, void *, size_t);
76: void bzero(void *, size_t);
77: int ffs(int);
78: char *index(const char *, int);
79: void *memccpy(void *, const void *, int, size_t);
80: char *rindex(const char *, int);
81: int strcasecmp(const char *, const char *);
82: char *strdup(const char *);
83: void strmode(int, char *);
84: int strncasecmp(const char *, const char *, size_t);
85: char *strsep(char **, const char *);
86: void swab(const void *, void *, size_t);
87: #endif
88:
89: size_t strlcat(char *, const char *, size_t);
90: size_t strlcpy(char *, const char *, size_t);
91: __END_DECLS
92:
93: #endif /* _STRING_H_ */
CVSweb