@@ -52,7 +52,7 @@ typedef __size_t size_t;
52
52
#endif
53
53
54
54
__BEGIN_DECLS
55
- #if __XSI_VISIBLE >= 600
55
+ #if __XSI_VISIBLE >= 600 || __ISO_C_VISIBLE >= 2023
56
56
void * memccpy (void * __restrict, const void * __restrict, int , size_t );
57
57
#endif
58
58
void * memchr (const void * , int , size_t ) __pure ;
@@ -86,7 +86,7 @@ int strcmp(const char *, const char *) __pure;
86
86
int strcoll (const char * , const char * );
87
87
char * strcpy (char * __restrict, const char * __restrict);
88
88
size_t strcspn (const char * , const char * ) __pure ;
89
- #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
89
+ #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE || __ISO_C_VISIBLE >= 2023
90
90
char * strdup (const char * ) __malloc_like ;
91
91
#endif
92
92
char * strerror (int );
@@ -104,8 +104,10 @@ void strmode(int, char *);
104
104
char * strncat (char * __restrict, const char * __restrict, size_t );
105
105
int strncmp (const char * , const char * , size_t ) __pure ;
106
106
char * strncpy (char * __restrict, const char * __restrict, size_t );
107
- #if __POSIX_VISIBLE >= 200809
107
+ #if __POSIX_VISIBLE >= 200809 || __ISO_C_VISIBLE >= 2023
108
108
char * strndup (const char * , size_t ) __malloc_like ;
109
+ #endif
110
+ #if __POSIX_VISIBLE >= 200809
109
111
size_t strnlen (const char * , size_t ) __pure ;
110
112
#endif
111
113
#if __BSD_VISIBLE
0 commit comments