142196Sbostic /*- 2*61068Sbostic * Copyright (c) 1990, 1993 3*61068Sbostic * The Regents of the University of California. All rights reserved. 424188Skre * 542196Sbostic * %sccs.include.redist.c% 635475Sbostic * 7*61068Sbostic * @(#)string.h 8.1 (Berkeley) 06/02/93 824188Skre */ 924188Skre 1042196Sbostic #ifndef _STRING_H_ 1142196Sbostic #define _STRING_H_ 1247181Sbostic #include <machine/ansi.h> 1342196Sbostic 1454254Sbostic #ifdef _BSD_SIZE_T_ 1554254Sbostic typedef _BSD_SIZE_T_ size_t; 1654254Sbostic #undef _BSD_SIZE_T_ 1742196Sbostic #endif 1842196Sbostic 1942196Sbostic #ifndef NULL 2042196Sbostic #define NULL 0 2142196Sbostic #endif 2242196Sbostic 2346281Sbostic #include <sys/cdefs.h> 2442196Sbostic 2546281Sbostic __BEGIN_DECLS 2646281Sbostic void *memchr __P((const void *, int, size_t)); 2746281Sbostic int memcmp __P((const void *, const void *, size_t)); 2846281Sbostic void *memcpy __P((void *, const void *, size_t)); 2946281Sbostic void *memmove __P((void *, const void *, size_t)); 3046281Sbostic void *memset __P((void *, int, size_t)); 3146281Sbostic char *strcat __P((char *, const char *)); 3246281Sbostic char *strchr __P((const char *, int)); 3346281Sbostic int strcmp __P((const char *, const char *)); 3446281Sbostic int strcoll __P((const char *, const char *)); 3546281Sbostic char *strcpy __P((char *, const char *)); 3646281Sbostic size_t strcspn __P((const char *, const char *)); 3746281Sbostic char *strerror __P((int)); 3846281Sbostic size_t strlen __P((const char *)); 3946281Sbostic char *strncat __P((char *, const char *, size_t)); 4046281Sbostic int strncmp __P((const char *, const char *, size_t)); 4146281Sbostic char *strncpy __P((char *, const char *, size_t)); 4246281Sbostic char *strpbrk __P((const char *, const char *)); 4346281Sbostic char *strrchr __P((const char *, int)); 4446281Sbostic size_t strspn __P((const char *, const char *)); 4546281Sbostic char *strstr __P((const char *, const char *)); 4646281Sbostic char *strtok __P((char *, const char *)); 4746281Sbostic size_t strxfrm __P((char *, const char *, size_t)); 4842196Sbostic 4942196Sbostic /* Nonstandard routines */ 5042196Sbostic #ifndef _ANSI_SOURCE 5146532Sbostic int bcmp __P((const void *, const void *, size_t)); 5246532Sbostic void bcopy __P((const void *, void *, size_t)); 5346532Sbostic void bzero __P((void *, size_t)); 5446281Sbostic int ffs __P((int)); 5546281Sbostic char *index __P((const char *, int)); 5646281Sbostic void *memccpy __P((void *, const void *, int, size_t)); 5746281Sbostic char *rindex __P((const char *, int)); 5846281Sbostic int strcasecmp __P((const char *, const char *)); 5946281Sbostic char *strdup __P((const char *)); 6046281Sbostic void strmode __P((int, char *)); 6146281Sbostic int strncasecmp __P((const char *, const char *, size_t)); 6246281Sbostic char *strsep __P((char **, const char *)); 6346617Sbostic void swab __P((const void *, void *, size_t)); 6446281Sbostic #endif 6546281Sbostic __END_DECLS 6642196Sbostic 6742196Sbostic #endif /* _STRING_H_ */ 68