tmp/tmp4yb3dr2j/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Header `<cstring>` synopsis <a id="cstring.syn">[[cstring.syn]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std {
|
| 5 |
+
using size_t = see [support.types.layout];
|
| 6 |
+
|
| 7 |
+
void* memcpy(void* s1, const void* s2, size_t n);
|
| 8 |
+
void* memmove(void* s1, const void* s2, size_t n);
|
| 9 |
+
char* strcpy(char* s1, const char* s2);
|
| 10 |
+
char* strncpy(char* s1, const char* s2, size_t n);
|
| 11 |
+
char* strcat(char* s1, const char* s2);
|
| 12 |
+
char* strncat(char* s1, const char* s2, size_t n);
|
| 13 |
+
int memcmp(const void* s1, const void* s2, size_t n);
|
| 14 |
+
int strcmp(const char* s1, const char* s2);
|
| 15 |
+
int strcoll(const char* s1, const char* s2);
|
| 16 |
+
int strncmp(const char* s1, const char* s2, size_t n);
|
| 17 |
+
size_t strxfrm(char* s1, const char* s2, size_t n);
|
| 18 |
+
const void* memchr(const void* s, int c, size_t n); // see [library.c]
|
| 19 |
+
void* memchr(void* s, int c, size_t n) // see [library.c]
|
| 20 |
+
const char* strchr(const char* s, int c) // see [library.c]
|
| 21 |
+
char* strchr(char* s, int c) // see [library.c]
|
| 22 |
+
size_t strcspn(const char* s1, const char* s2);
|
| 23 |
+
const char* strpbrk(const char* s1, const char* s2) // see [library.c]
|
| 24 |
+
char* strpbrk(char* s1, const char* s2) // see [library.c]
|
| 25 |
+
const char* strrchr(const char* s, int c) // see [library.c]
|
| 26 |
+
char* strrchr(char* s, int c) // see [library.c]
|
| 27 |
+
size_t strspn(const char* s1, const char* s2);
|
| 28 |
+
const char* strstr(const char* s1, const char* s2) // see [library.c]
|
| 29 |
+
char* strstr(char* s1, const char* s2) // see [library.c]
|
| 30 |
+
char* strtok(char* s1, const char* s2);
|
| 31 |
+
void* memset(void* s, int c, size_t n);
|
| 32 |
+
char* strerror(int errnum);
|
| 33 |
+
size_t strlen(const char* s);
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
#define NULL see [support.types.nullptr]
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
The contents and meaning of the header `<cstring>` are the same as the C
|
| 40 |
+
standard library header `<string.h>`.
|
| 41 |
+
|
| 42 |
+
The functions `strerror` and `strtok` are not required to avoid data
|
| 43 |
+
races ([[res.on.data.races]]).
|
| 44 |
+
|
| 45 |
+
The functions `memcpy` and `memmove` are signal-safe ([[csignal.syn]]).
|
| 46 |
+
|
| 47 |
+
[*Note 1*: The functions `strchr`, `strpbrk`, `strrchr`, `strstr`, and
|
| 48 |
+
`memchr`, have different signatures in this International Standard, but
|
| 49 |
+
they have the same behavior as in the C standard library (
|
| 50 |
+
[[library.c]]). — *end note*]
|
| 51 |
+
|
| 52 |
+
ISO C 7.24.
|
| 53 |
+
|