Richard Smith | ba838c5 | 2015-10-10 01:25:31 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- string.h ---------------------------------===// |
| 3 | // |
| 4 | // The LLVM Compiler Infrastructure |
| 5 | // |
| 6 | // This file is distributed under the University of Illinois Open Source |
| 7 | // License. See LICENSE.TXT for details. |
| 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef _LIBCPP_STRING_H |
| 12 | #define _LIBCPP_STRING_H |
| 13 | |
| 14 | /* |
| 15 | string.h synopsis |
| 16 | |
| 17 | Macros: |
| 18 | |
| 19 | NULL |
| 20 | |
| 21 | Types: |
| 22 | |
| 23 | size_t |
| 24 | |
| 25 | void* memcpy(void* restrict s1, const void* restrict s2, size_t n); |
| 26 | void* memmove(void* s1, const void* s2, size_t n); |
| 27 | char* strcpy (char* restrict s1, const char* restrict s2); |
| 28 | char* strncpy(char* restrict s1, const char* restrict s2, size_t n); |
| 29 | char* strcat (char* restrict s1, const char* restrict s2); |
| 30 | char* strncat(char* restrict s1, const char* restrict s2, size_t n); |
| 31 | int memcmp(const void* s1, const void* s2, size_t n); |
| 32 | int strcmp (const char* s1, const char* s2); |
| 33 | int strncmp(const char* s1, const char* s2, size_t n); |
| 34 | int strcoll(const char* s1, const char* s2); |
| 35 | size_t strxfrm(char* restrict s1, const char* restrict s2, size_t n); |
| 36 | const void* memchr(const void* s, int c, size_t n); |
| 37 | void* memchr( void* s, int c, size_t n); |
| 38 | const char* strchr(const char* s, int c); |
| 39 | char* strchr( char* s, int c); |
| 40 | size_t strcspn(const char* s1, const char* s2); |
| 41 | const char* strpbrk(const char* s1, const char* s2); |
| 42 | char* strpbrk( char* s1, const char* s2); |
| 43 | const char* strrchr(const char* s, int c); |
| 44 | char* strrchr( char* s, int c); |
| 45 | size_t strspn(const char* s1, const char* s2); |
| 46 | const char* strstr(const char* s1, const char* s2); |
| 47 | char* strstr( char* s1, const char* s2); |
| 48 | char* strtok(char* restrict s1, const char* restrict s2); |
| 49 | void* memset(void* s, int c, size_t n); |
| 50 | char* strerror(int errnum); |
| 51 | size_t strlen(const char* s); |
| 52 | |
| 53 | */ |
| 54 | |
| 55 | #include <__config> |
| 56 | |
| 57 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 58 | #pragma GCC system_header |
| 59 | #endif |
| 60 | |
| 61 | #include_next <string.h> |
| 62 | |
| 63 | #endif // _LIBCPP_STRING_H |