/* Copyright 07/20/98 Sun Microsystems, Inc. All Rights Reserved */ #if !defined(__STD_CSTRING) && !defined(__STD_STRING_H) #define __STD_CSTRING #include #ifndef NULL #define NULL 0 #endif namespace std { // C++ Standard functions and types #if defined(_LP64) || defined(_I32LPx) typedef unsigned long size_t; /* size of something in bytes */ #else typedef unsigned int size_t; /* (historical version) */ #endif extern "C" { void *memcpy(void *, const void *, size_t); void *memmove(void *, const void *, size_t); char *strcpy(char *, const char *); char *strncpy(char *, const char *, size_t); char *strcat(char *, const char *); char *strncat(char *, const char *, size_t); int memcmp(const void *, const void *, size_t); int strcmp(const char *, const char *); int strcoll(const char *, const char *); int strncmp(const char *, const char *, size_t); size_t strxfrm(char *, const char *, size_t); char *strchr(char *, int); char *strpbrk(char *, const char *); char *strrchr(char *, int); char *strstr(char *, const char *); void *memchr(void *, int, size_t); size_t strcspn(const char *, const char *); size_t strspn(const char *, const char *); char *strtok(char *, const char *); void *memset(void *, int, size_t); char *strerror(int); size_t strlen(const char *); } /* extern C */ // required by the C++ standard extern const char* strchr(const char*, int); extern const char *strpbrk(const char *, const char *); extern const char *strrchr(const char *, int); extern const char *strstr(const char *, const char *); extern const void *memchr(const void *, int, size_t); } /* namespace std */ #endif /* __STD_string */