2 * D header file for C99.
4 * $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_string.h.html, _string.h)
6 * Copyright: Copyright Sean Kelly 2005 - 2009.
7 * License: Distributed under the
8 * $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
9 * (See accompanying file LICENSE)
11 * Source: $(DRUNTIMESRC core/stdc/_string.d)
12 * Standards: ISO/IEC 9899:1999 (E)
15 module core.stdc.string;
23 else version (WatchOS)
32 pure void* memchr(return const void* s, int c, size_t n);
34 pure int memcmp(scope const void* s1, scope const void* s2, size_t n);
36 pure void* memcpy(return void* s1, scope const void* s2, size_t n);
40 int memicmp(scope const char* s1, scope const char* s2, size_t n);
43 pure void* memmove(return void* s1, scope const void* s2, size_t n);
45 pure void* memset(return void* s, int c, size_t n);
48 pure char* strcpy(return char* s1, scope const char* s2);
50 pure char* strncpy(return char* s1, scope const char* s2, size_t n);
52 pure char* strcat(return char* s1, scope const char* s2);
54 pure char* strncat(return char* s1, scope const char* s2, size_t n);
56 pure int strcmp(scope const char* s1, scope const char* s2);
58 int strcoll(scope const char* s1, scope const char* s2);
60 pure int strncmp(scope const char* s1, scope const char* s2, size_t n);
62 size_t strxfrm(scope char* s1, scope const char* s2, size_t n);
64 pure inout(char)* strchr(return inout(char)* s, int c);
66 pure size_t strcspn(scope const char* s1, scope const char* s2);
68 pure inout(char)* strpbrk(return inout(char)* s1, scope const char* s2);
70 pure inout(char)* strrchr(return inout(char)* s, int c);
72 pure size_t strspn(scope const char* s1, scope const char* s2);
74 pure inout(char)* strstr(return inout(char)* s1, scope const char* s2);
76 char* strtok(return char* s1, scope const char* s2);
78 char* strerror(int errnum);
79 version (CRuntime_Glibc)
82 const(char)* strerror_r(int errnum, return char* buf, size_t buflen);
86 int strerror_r(int errnum, scope char* buf, size_t buflen);
88 else version (FreeBSD)
90 int strerror_r(int errnum, scope char* buf, size_t buflen);
94 int strerror_r(int errnum, char* buf, size_t buflen);
96 else version (OpenBSD)
98 int strerror_r(int errnum, scope char* buf, size_t buflen);
100 else version (DragonFlyBSD)
102 int strerror_r(int errnum, scope char* buf, size_t buflen);
104 else version (Solaris)
106 int strerror_r(int errnum, scope char* buf, size_t buflen);
108 else version (CRuntime_Bionic)
111 int strerror_r(int errnum, scope char* buf, size_t buflen);
113 else version (CRuntime_Musl)
116 int strerror_r(int errnum, scope char *buf, size_t buflen);
118 else version (CRuntime_UClibc)
121 const(char)* strerror_r(int errnum, return char* buf, size_t buflen);
124 pure size_t strlen(scope const char* s);
126 char* strdup(scope const char *s);