1*58b9f456SAndroid Build Coastguard Worker// -*- C++ -*- 2*58b9f456SAndroid Build Coastguard Worker//===--------------------------- cstring ----------------------------------===// 3*58b9f456SAndroid Build Coastguard Worker// 4*58b9f456SAndroid Build Coastguard Worker// The LLVM Compiler Infrastructure 5*58b9f456SAndroid Build Coastguard Worker// 6*58b9f456SAndroid Build Coastguard Worker// This file is distributed under the University of Illinois Open Source 7*58b9f456SAndroid Build Coastguard Worker// License. See LICENSE.TXT for details. 8*58b9f456SAndroid Build Coastguard Worker// 9*58b9f456SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===// 10*58b9f456SAndroid Build Coastguard Worker 11*58b9f456SAndroid Build Coastguard Worker#ifndef _LIBCPP_CSTRING 12*58b9f456SAndroid Build Coastguard Worker#define _LIBCPP_CSTRING 13*58b9f456SAndroid Build Coastguard Worker 14*58b9f456SAndroid Build Coastguard Worker/* 15*58b9f456SAndroid Build Coastguard Worker cstring synopsis 16*58b9f456SAndroid Build Coastguard Worker 17*58b9f456SAndroid Build Coastguard WorkerMacros: 18*58b9f456SAndroid Build Coastguard Worker 19*58b9f456SAndroid Build Coastguard Worker NULL 20*58b9f456SAndroid Build Coastguard Worker 21*58b9f456SAndroid Build Coastguard Workernamespace std 22*58b9f456SAndroid Build Coastguard Worker{ 23*58b9f456SAndroid Build Coastguard Worker 24*58b9f456SAndroid Build Coastguard WorkerTypes: 25*58b9f456SAndroid Build Coastguard Worker 26*58b9f456SAndroid Build Coastguard Worker size_t 27*58b9f456SAndroid Build Coastguard Worker 28*58b9f456SAndroid Build Coastguard Workervoid* memcpy(void* restrict s1, const void* restrict s2, size_t n); 29*58b9f456SAndroid Build Coastguard Workervoid* memmove(void* s1, const void* s2, size_t n); 30*58b9f456SAndroid Build Coastguard Workerchar* strcpy (char* restrict s1, const char* restrict s2); 31*58b9f456SAndroid Build Coastguard Workerchar* strncpy(char* restrict s1, const char* restrict s2, size_t n); 32*58b9f456SAndroid Build Coastguard Workerchar* strcat (char* restrict s1, const char* restrict s2); 33*58b9f456SAndroid Build Coastguard Workerchar* strncat(char* restrict s1, const char* restrict s2, size_t n); 34*58b9f456SAndroid Build Coastguard Workerint memcmp(const void* s1, const void* s2, size_t n); 35*58b9f456SAndroid Build Coastguard Workerint strcmp (const char* s1, const char* s2); 36*58b9f456SAndroid Build Coastguard Workerint strncmp(const char* s1, const char* s2, size_t n); 37*58b9f456SAndroid Build Coastguard Workerint strcoll(const char* s1, const char* s2); 38*58b9f456SAndroid Build Coastguard Workersize_t strxfrm(char* restrict s1, const char* restrict s2, size_t n); 39*58b9f456SAndroid Build Coastguard Workerconst void* memchr(const void* s, int c, size_t n); 40*58b9f456SAndroid Build Coastguard Worker void* memchr( void* s, int c, size_t n); 41*58b9f456SAndroid Build Coastguard Workerconst char* strchr(const char* s, int c); 42*58b9f456SAndroid Build Coastguard Worker char* strchr( char* s, int c); 43*58b9f456SAndroid Build Coastguard Workersize_t strcspn(const char* s1, const char* s2); 44*58b9f456SAndroid Build Coastguard Workerconst char* strpbrk(const char* s1, const char* s2); 45*58b9f456SAndroid Build Coastguard Worker char* strpbrk( char* s1, const char* s2); 46*58b9f456SAndroid Build Coastguard Workerconst char* strrchr(const char* s, int c); 47*58b9f456SAndroid Build Coastguard Worker char* strrchr( char* s, int c); 48*58b9f456SAndroid Build Coastguard Workersize_t strspn(const char* s1, const char* s2); 49*58b9f456SAndroid Build Coastguard Workerconst char* strstr(const char* s1, const char* s2); 50*58b9f456SAndroid Build Coastguard Worker char* strstr( char* s1, const char* s2); 51*58b9f456SAndroid Build Coastguard Workerchar* strtok(char* restrict s1, const char* restrict s2); 52*58b9f456SAndroid Build Coastguard Workervoid* memset(void* s, int c, size_t n); 53*58b9f456SAndroid Build Coastguard Workerchar* strerror(int errnum); 54*58b9f456SAndroid Build Coastguard Workersize_t strlen(const char* s); 55*58b9f456SAndroid Build Coastguard Worker 56*58b9f456SAndroid Build Coastguard Worker} // std 57*58b9f456SAndroid Build Coastguard Worker 58*58b9f456SAndroid Build Coastguard Worker*/ 59*58b9f456SAndroid Build Coastguard Worker 60*58b9f456SAndroid Build Coastguard Worker#include <__config> 61*58b9f456SAndroid Build Coastguard Worker#include <string.h> 62*58b9f456SAndroid Build Coastguard Worker 63*58b9f456SAndroid Build Coastguard Worker#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 64*58b9f456SAndroid Build Coastguard Worker#pragma GCC system_header 65*58b9f456SAndroid Build Coastguard Worker#endif 66*58b9f456SAndroid Build Coastguard Worker 67*58b9f456SAndroid Build Coastguard Worker_LIBCPP_BEGIN_NAMESPACE_STD 68*58b9f456SAndroid Build Coastguard Worker 69*58b9f456SAndroid Build Coastguard Workerusing ::size_t; 70*58b9f456SAndroid Build Coastguard Workerusing ::memcpy; 71*58b9f456SAndroid Build Coastguard Workerusing ::memmove; 72*58b9f456SAndroid Build Coastguard Workerusing ::strcpy; 73*58b9f456SAndroid Build Coastguard Workerusing ::strncpy; 74*58b9f456SAndroid Build Coastguard Workerusing ::strcat; 75*58b9f456SAndroid Build Coastguard Workerusing ::strncat; 76*58b9f456SAndroid Build Coastguard Workerusing ::memcmp; 77*58b9f456SAndroid Build Coastguard Workerusing ::strcmp; 78*58b9f456SAndroid Build Coastguard Workerusing ::strncmp; 79*58b9f456SAndroid Build Coastguard Workerusing ::strcoll; 80*58b9f456SAndroid Build Coastguard Workerusing ::strxfrm; 81*58b9f456SAndroid Build Coastguard Workerusing ::memchr; 82*58b9f456SAndroid Build Coastguard Workerusing ::strchr; 83*58b9f456SAndroid Build Coastguard Workerusing ::strcspn; 84*58b9f456SAndroid Build Coastguard Workerusing ::strpbrk; 85*58b9f456SAndroid Build Coastguard Workerusing ::strrchr; 86*58b9f456SAndroid Build Coastguard Workerusing ::strspn; 87*58b9f456SAndroid Build Coastguard Workerusing ::strstr; 88*58b9f456SAndroid Build Coastguard Worker#ifndef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS 89*58b9f456SAndroid Build Coastguard Workerusing ::strtok; 90*58b9f456SAndroid Build Coastguard Worker#endif 91*58b9f456SAndroid Build Coastguard Workerusing ::memset; 92*58b9f456SAndroid Build Coastguard Workerusing ::strerror; 93*58b9f456SAndroid Build Coastguard Workerusing ::strlen; 94*58b9f456SAndroid Build Coastguard Worker 95*58b9f456SAndroid Build Coastguard Worker_LIBCPP_END_NAMESPACE_STD 96*58b9f456SAndroid Build Coastguard Worker 97*58b9f456SAndroid Build Coastguard Worker#endif // _LIBCPP_CSTRING 98