2 //===--------------------------- cstring ----------------------------------===//
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef _LIBCPP_CSTRING
12 #define _LIBCPP_CSTRING
28 void* memcpy(void* restrict s1, const void* restrict s2, size_t n);
29 void* memmove(void* s1, const void* s2, size_t n);
30 char* strcpy (char* restrict s1, const char* restrict s2);
31 char* strncpy(char* restrict s1, const char* restrict s2, size_t n);
32 char* strcat (char* restrict s1, const char* restrict s2);
33 char* strncat(char* restrict s1, const char* restrict s2, size_t n);
34 int memcmp(const void* s1, const void* s2, size_t n);
35 int strcmp (const char* s1, const char* s2);
36 int strncmp(const char* s1, const char* s2, size_t n);
37 int strcoll(const char* s1, const char* s2);
38 size_t strxfrm(char* restrict s1, const char* restrict s2, size_t n);
39 const void* memchr(const void* s, int c, size_t n);
40 void* memchr( void* s, int c, size_t n);
41 const char* strchr(const char* s, int c);
42 char* strchr( char* s, int c);
43 size_t strcspn(const char* s1, const char* s2);
44 const char* strpbrk(const char* s1, const char* s2);
45 char* strpbrk( char* s1, const char* s2);
46 const char* strrchr(const char* s, int c);
47 char* strrchr( char* s, int c);
48 size_t strspn(const char* s1, const char* s2);
49 const char* strstr(const char* s1, const char* s2);
50 char* strstr( char* s1, const char* s2);
51 char* strtok(char* restrict s1, const char* restrict s2);
52 void* memset(void* s, int c, size_t n);
53 char* strerror(int errnum);
54 size_t strlen(const char* s);
63 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
64 #pragma GCC system_header
67 _LIBCPP_BEGIN_NAMESPACE_STD
88 #ifndef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS
95 _LIBCPP_END_NAMESPACE_STD
97 #endif // _LIBCPP_CSTRING