@@ -66,14 +66,25 @@ size_t strcspn(scope const char* s1, scope const char* s2) pure;
66
66
char * strdup (scope const char * s);
67
67
// /
68
68
char * strerror (int errnum);
69
+ // This `strerror_r` definition is not following the POSIX standard
70
+ version (ReturnStrerrorR)
71
+ {
72
+ // /
73
+ const (char )* strerror_r (int errnum, return char * buf, size_t buflen);
74
+ }
75
+ // This one is
76
+ else
77
+ {
78
+ int strerror_r (int errnum, scope char * buf, size_t buflen);
79
+ }
69
80
// /
70
- char * strncpy ( return char * s1, scope const char * s2, size_t n ) pure ;
81
+ size_t strlen ( scope const char * s ) pure ;
71
82
// /
72
83
char * strncat (return char * s1, scope const char * s2, size_t n) pure ;
73
84
// /
74
85
int strncmp (scope const char * s1, scope const char * s2, size_t n) pure ;
75
86
// /
76
- size_t strxfrm ( scope char * s1, scope const char * s2, size_t n);
87
+ char * strncpy ( return char * s1, scope const char * s2, size_t n) pure ;
77
88
// /
78
89
inout (char )* strpbrk (return inout (char )* s1, scope const char * s2) pure ;
79
90
// /
@@ -84,17 +95,5 @@ size_t strspn(scope const char* s1, scope const char* s2) pure;
84
95
inout (char )* strstr (return inout (char )* s1, scope const char * s2) pure ;
85
96
// /
86
97
char * strtok (return char * s1, scope const char * s2);
87
- // This `strerror_r` definition is not following the POSIX standard
88
- version (ReturnStrerrorR)
89
- {
90
- // /
91
- const (char )* strerror_r (int errnum, return char * buf, size_t buflen);
92
- }
93
- // This one is
94
- else
95
- {
96
- // /
97
- int strerror_r (int errnum, scope char * buf, size_t buflen);
98
- }
99
98
// /
100
- size_t strlen (scope const char * s) pure ;
99
+ size_t strxfrm (scope char * s1, scope const char * s2, size_t n) ;
0 commit comments