|
5 | 5 |
|
6 | 6 | __BEGIN_DECLS |
7 | 7 |
|
8 | | -extern void *memcpy(void *__restrict dest, const void *__restrict src, |
9 | | - size_t n) __attribute__((nonnull(1, 2))); |
| 8 | +extern void *memcpy(void *__restrict dest, const void *__restrict src, size_t n) |
| 9 | + __attribute__((nonnull(1, 2))); |
10 | 10 |
|
11 | 11 | void *memmove(void *dest, const void *src, size_t n) |
12 | | - __attribute__((nonnull(1, 2))); |
| 12 | + __attribute__((nonnull(1, 2))); |
13 | 13 |
|
14 | | -void *memset(void *s, int c, size_t n) __attribute__((nonnull(1))); |
| 14 | +void *memset(void *s, int c, size_t n) |
| 15 | + __attribute__((nonnull(1))); |
15 | 16 |
|
16 | 17 | int memcmp(const void *s1, const void *s2, size_t n) |
17 | | - __attribute__((nonnull(1, 2))); |
| 18 | + __attribute__((nonnull(1, 2))); |
18 | 19 |
|
19 | | -void *memchr(const void *s, int c, size_t n) __attribute__((nonnull(1))); |
| 20 | +void *memchr(const void *s, int c, size_t n) |
| 21 | + __attribute__((nonnull(1))); |
| 22 | + |
| 23 | +void* memccpy(void *__restrict dest, const void *__restrict src, int c, size_t n) __NOEXCEPT |
| 24 | + __attribute__((nonnull(1, 2))); |
20 | 25 |
|
21 | 26 | char *strcpy(char *__restrict dest, const char *__restrict src) |
22 | | - __attribute__((nonnull(1, 2))); |
| 27 | + __attribute__((nonnull(1, 2))); |
23 | 28 |
|
24 | 29 | char *strncpy(char *__restrict dest, const char *__restrict src, size_t n) |
25 | | - __attribute__((nonnull(1, 2))); |
| 30 | + __attribute__((nonnull(1, 2))); |
| 31 | + |
| 32 | +char *stpcpy(char *__restrict dest, const char *__restrict src) __NOEXCEPT |
| 33 | + __attribute__((nonnull(1, 2))); |
| 34 | + |
| 35 | +char *stpncpy(char *__restrict dest, const char *__restrict src, size_t n) __NOEXCEPT |
| 36 | + __attribute__((nonnull(1, 2))); |
| 37 | + |
| 38 | +char *strlcpy(char *__restrict dest, const char *__restrict src, size_t n) __NOEXCEPT |
| 39 | + __attribute__((nonnull(1, 2))); |
26 | 40 |
|
27 | 41 | char *strcat(char *__restrict dest, const char *__restrict src) |
28 | | - __attribute__((nonnull(1, 2))); |
| 42 | + __attribute__((nonnull(1, 2))); |
29 | 43 |
|
30 | 44 | char *strncat(char *__restrict dest, const char *__restrict src, size_t n) |
31 | | - __attribute__((nonnull(1, 2))); |
| 45 | + __attribute__((nonnull(1, 2))); |
| 46 | + |
| 47 | +char *strlcat(char *__restrict dest, const char *__restrict src, size_t n) __NOEXCEPT |
| 48 | + __attribute__((nonnull(1, 2))); |
32 | 49 |
|
33 | | -char *strchr(const char *s, int c) __attribute__((nonnull(1))); |
| 50 | +char *strchr(const char *s, int c) |
| 51 | + __attribute__((nonnull(1))); |
34 | 52 |
|
35 | | -char *strrchr(const char *s, int c) __attribute__((nonnull(1))); |
| 53 | +char *strrchr(const char *s, int c) |
| 54 | + __attribute__((nonnull(1))); |
36 | 55 |
|
37 | | -char *strpbrk(const char *s, const char *accept) __attribute__((nonnull(1, 2))); |
| 56 | +char *strpbrk(const char *s, const char *accept) |
| 57 | + __attribute__((nonnull(1, 2))); |
38 | 58 |
|
39 | 59 | char *strstr(const char *haystack, const char *needle) |
40 | | - __attribute__((nonnull(1, 2))); |
| 60 | + __attribute__((nonnull(1, 2))); |
41 | 61 |
|
42 | 62 | char *strtok(char *__restrict s, const char *__restrict delim) |
43 | | - __attribute__((nonnull(2))); |
| 63 | + __attribute__((nonnull(2))); |
44 | 64 |
|
45 | 65 | char *strdup(const char *s) |
46 | | - __attribute__ ((__malloc__)) __attribute__((nonnull(1))); |
| 66 | + __attribute__((__malloc__)) __attribute__((nonnull(1))); |
47 | 67 |
|
48 | 68 | char *strndup(const char *s, size_t n) |
49 | | - __attribute__ ((__malloc__)) __attribute__((nonnull(1))); |
| 69 | + __attribute__((__malloc__)) __attribute__((nonnull(1))); |
50 | 70 |
|
51 | 71 | size_t strcspn(const char *s, const char *reject) |
52 | | - __attribute__((nonnull(1, 2))); |
| 72 | + __attribute__((nonnull(1, 2))); |
53 | 73 |
|
54 | 74 | size_t strspn(const char *s, const char *accept) |
55 | | - __attribute__((nonnull(1, 2))); |
| 75 | + __attribute__((nonnull(1, 2))); |
56 | 76 |
|
57 | 77 | size_t strlen(const char *s) |
58 | | - __attribute__((nonnull(1))); |
| 78 | + __attribute__((nonnull(1))); |
59 | 79 |
|
60 | 80 | size_t strnlen(const char *s, size_t maxlen) |
61 | | - __attribute__((nonnull(1))); |
| 81 | + __attribute__((nonnull(1))); |
62 | 82 |
|
63 | 83 | int strcmp(const char *s1, const char *s2) |
64 | | - __attribute__((nonnull(1, 2))); |
| 84 | + __attribute__((nonnull(1, 2))); |
65 | 85 |
|
66 | 86 | int strncmp(const char *s1, const char *s2, size_t n) |
67 | | - __attribute__((nonnull(1, 2))); |
| 87 | + __attribute__((nonnull(1, 2))); |
68 | 88 |
|
69 | | -int strcasecmp(const char *s1, const char *s2) |
70 | | - __attribute__((nonnull(1, 2))); |
| 89 | +int strcasecmp(const char *s1, const char *s2) __NOEXCEPT |
| 90 | + __attribute__((nonnull(1, 2))) __attribute__((__pure__)); |
71 | 91 |
|
72 | | -int strncasecmp(const char *s1, const char *s2, size_t n) |
73 | | - __attribute__((nonnull(1, 2))); |
| 92 | +int strncasecmp(const char *s1, const char *s2, size_t n) __NOEXCEPT |
| 93 | + __attribute__((nonnull(1, 2))) __attribute__((__pure__)); |
74 | 94 |
|
75 | 95 | char* strerror(int errnum); |
76 | 96 |
|
|
0 commit comments