58 lines · 1.8 KB · C
RawDownload
/*  * This file is part of the UCB release of Plan 9. It is subject to the license * terms in the LICENSE file found in the top-level directory of this * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No * part of the UCB release of Plan 9, including this file, may be copied, * modified, propagated, or distributed except according to the terms contained * in the LICENSE file. */ #ifndef __STRING_H_#define __STRING_H_#pragma lib "/$M/lib/ape/libap.a" #include <stddef.h> #ifdef __cplusplusextern "C" {#endif extern void *memcpy(void *, const void *, size_t);extern void* memccpy(void*, void*, int, size_t);extern void *memmove(void *, const void *, size_t);extern char *strcpy(char *, const char *);extern char *strncpy(char *, const char *, size_t);extern char *strcat(char *, const char *);extern char *strncat(char *, const char *, size_t);extern int memcmp(const void *, const void *, size_t);extern int strcmp(const char *, const char *);extern int strcoll(const char *, const char *);extern char* strdup(char*);extern int strncmp(const char *, const char *, size_t);extern size_t strxfrm(char *, const char *, size_t);extern void *memchr(const void *, int, size_t);extern char *strchr(const char *, int);extern size_t strcspn(const char *, const char *);extern char *strpbrk(const char *, const char *);extern char *strrchr(const char *, int);extern size_t strspn(const char *, const char *);extern char *strstr(const char *, const char *);extern char *strtok(char *, const char *);extern void *memset(void *, int, size_t);extern char *strerror(int);extern size_t strlen(const char *); #ifdef _REENTRANT_SOURCEextern char *strerror_r(int, const char *, int);extern char *strtok_r(char *, const char *, char **);#endif #ifdef _BSD_EXTENSION#include <bsd.h>#endif #ifdef __cplusplus}#endif #endif