-
-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathstring.h
More file actions
126 lines (83 loc) · 4.01 KB
/
string.h
File metadata and controls
126 lines (83 loc) · 4.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#ifndef _STRING_H
#define _STRING_H
#include <cdefs.h>
__BEGIN_DECLS
extern void *memcpy(void *__restrict dest, const void *__restrict src, size_t n)
__attribute__((nonnull(1, 2)));
void *memmove(void *dest, const void *src, size_t n)
__attribute__((nonnull(1, 2)));
void *memset(void *s, int c, size_t n)
__attribute__((nonnull(1)));
void bzero(void *s, size_t n)
__attribute__((nonnull(1)));
int memcmp(const void *s1, const void *s2, size_t n)
__attribute__((nonnull(1, 2)));
void *memchr(const void *s, int c, size_t n)
__attribute__((nonnull(1)));
void *memrchr(const void *s, int c, size_t n)
__NOEXCEPT __attribute__((nonnull(1))) __attribute((__pure__));
void *memmem(const void *haystack, size_t haystack_len, const void *needle, size_t needle_len)
__NOEXCEPT __attribute__((nonnull(1, 3))) __attribute((__pure__));
void *memrmem(const void *haystack, size_t haystack_len, const void *needle, size_t needle_len)
__NOEXCEPT __attribute__((nonnull(1, 3))) __attribute((__pure__));
void *memccpy(void *__restrict dest, const void *__restrict src, int c, size_t n)
__NOEXCEPT __attribute__((nonnull(1, 2)));
void *mempcpy(void *__restrict dest, const void *__restrict src, size_t n)
__NOEXCEPT __attribute__((nonnull(1, 2)));
char *strcpy(char *__restrict dest, const char *__restrict src)
__attribute__((nonnull(1, 2)));
char *strncpy(char *__restrict dest, const char *__restrict src, size_t n)
__attribute__((nonnull(1, 2)));
char *stpcpy(char *__restrict dest, const char *__restrict src)
__NOEXCEPT __attribute__((nonnull(1, 2)));
char *stpncpy(char *__restrict dest, const char *__restrict src, size_t n)
__NOEXCEPT __attribute__((nonnull(1, 2)));
size_t strlcpy(char *__restrict dest, const char *__restrict src, size_t n)
__NOEXCEPT __attribute__((nonnull(1, 2)));
char *strcat(char *__restrict dest, const char *__restrict src)
__attribute__((nonnull(1, 2)));
char *strncat(char *__restrict dest, const char *__restrict src, size_t n)
__attribute__((nonnull(1, 2)));
size_t strlcat(char *__restrict dest, const char *__restrict src, size_t n)
__NOEXCEPT __attribute__((nonnull(1, 2)));
char *strchr(const char *s, int c)
__attribute__((nonnull(1)));
char *strrchr(const char *s, int c)
__attribute__((nonnull(1)));
char *strchrnul(const char *s, int c)
__NOEXCEPT __attribute__((nonnull(1))) __attribute__((__pure__));
char *strpbrk(const char *s, const char *accept)
__attribute__((nonnull(1, 2)));
char *strstr(const char *haystack, const char *needle)
__attribute__((nonnull(1, 2)));
char *strrstr(const char *haystack, const char *needle)
__NOEXCEPT __attribute__((nonnull(1, 2))) __attribute__((__pure__));
char *strcasestr(const char *haystack, const char *needle)
__NOEXCEPT __attribute__((nonnull(1, 2))) __attribute__((__pure__));
char *strtok(char *__restrict s, const char *__restrict delim)
__attribute__((nonnull(2)));
char *strtok_r(char *__restrict s, const char *__restrict delim, char **__restrict save_ptr)
__attribute__((nonnull(2, 3)));
char *strdup(const char *s)
__attribute__((__malloc__)) __attribute__((nonnull(1)));
char *strndup(const char *s, size_t n)
__attribute__((__malloc__)) __attribute__((nonnull(1)));
size_t strcspn(const char *s, const char *reject)
__attribute__((nonnull(1, 2)));
size_t strspn(const char *s, const char *accept)
__attribute__((nonnull(1, 2)));
size_t strlen(const char *s)
__attribute__((nonnull(1)));
size_t strnlen(const char *s, size_t maxlen)
__attribute__((nonnull(1)));
int strcmp(const char *s1, const char *s2)
__attribute__((nonnull(1, 2)));
int strncmp(const char *s1, const char *s2, size_t n)
__attribute__((nonnull(1, 2)));
int strcasecmp(const char *s1, const char *s2)
__NOEXCEPT __attribute__((nonnull(1, 2))) __attribute__((__pure__));
int strncasecmp(const char *s1, const char *s2, size_t n)
__NOEXCEPT __attribute__((nonnull(1, 2))) __attribute__((__pure__));
char* strerror(int errnum);
__END_DECLS
#endif /* _STRING_H */