| 1 | /** |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. |
| 3 | * This file is part of the mingw-w64 runtime package. |
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 | */ |
| 6 | #ifndef _INC_STRING |
| 7 | #define _INC_STRING |
| 8 | |
| 9 | #include <crtdefs.h> |
| 10 | #include <corecrt_memory.h> |
| 11 | |
| 12 | #ifdef __cplusplus |
| 13 | extern "C" { |
| 14 | #endif |
| 15 | |
| 16 | #ifndef _NLSCMP_DEFINED |
| 17 | #define _NLSCMP_DEFINED |
| 18 | #define _NLSCMPERROR 2147483647 |
| 19 | #endif |
| 20 | |
| 21 | #ifndef NULL |
| 22 | #ifdef __cplusplus |
| 23 | #ifndef _WIN64 |
| 24 | #define NULL 0 |
| 25 | #else |
| 26 | #define NULL 0LL |
| 27 | #endif /* W64 */ |
| 28 | #else |
| 29 | #define NULL ((void *)0) |
| 30 | #endif |
| 31 | #endif |
| 32 | |
| 33 | char * __cdecl _strset(char *_Str,int _Val) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 34 | char * __cdecl _strset_l(char *_Str,int _Val,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 35 | char * __cdecl strcpy(char * __restrict__ _Dest,const char * __restrict__ _Source); |
| 36 | char * __cdecl strcat(char * __restrict__ _Dest,const char * __restrict__ _Source); |
| 37 | int __cdecl strcmp(const char *_Str1,const char *_Str2); |
| 38 | size_t __cdecl strlen(const char *_Str); |
| 39 | size_t __cdecl strnlen(const char *_Str,size_t _MaxCount); |
| 40 | void *__cdecl memmove(void *_Dst,const void *_Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 41 | #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
| 42 | #pragma push_macro("_strdup") |
| 43 | #undef _strdup |
| 44 | #endif |
| 45 | _CRTIMP char *__cdecl _strdup(const char *_Src); |
| 46 | #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
| 47 | #pragma pop_macro("_strdup") |
| 48 | #endif |
| 49 | #if !defined(__STRICT_ANSI__) || defined(_GNU_SOURCE) || __STDC_VERSION__ + 0 >= 202311L || _POSIX_C_SOURCE + 0 >= 200809L || _XOPEN_SOURCE + 0 >= 600 |
| 50 | #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
| 51 | #pragma push_macro("strdup") |
| 52 | #undef strdup |
| 53 | #endif |
| 54 | char *__cdecl strdup(const char *_Src); |
| 55 | #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
| 56 | #pragma pop_macro("strdup") |
| 57 | #endif |
| 58 | #endif |
| 59 | #if !defined(__STRICT_ANSI__) || defined(_GNU_SOURCE) || __STDC_VERSION__ + 0 >= 202311L || _POSIX_C_SOURCE + 0 >= 200809L || _XOPEN_SOURCE + 0 >= 700 |
| 60 | char *__cdecl strndup(const char *_Src,size_t _MaxCount); |
| 61 | #endif |
| 62 | _CONST_RETURN char *__cdecl strchr(const char *_Str,int _Val); |
| 63 | _CRTIMP int __cdecl _stricmp(const char *_Str1,const char *_Str2); |
| 64 | _CRTIMP int __cdecl _strcmpi(const char *_Str1,const char *_Str2); |
| 65 | _CRTIMP int __cdecl _stricmp_l(const char *_Str1,const char *_Str2,_locale_t _Locale); |
| 66 | _CRTIMP int __cdecl strcoll(const char *_Str1,const char *_Str2); |
| 67 | _CRTIMP int __cdecl _strcoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale); |
| 68 | _CRTIMP int __cdecl _stricoll(const char *_Str1,const char *_Str2); |
| 69 | _CRTIMP int __cdecl _stricoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale); |
| 70 | _CRTIMP int __cdecl _strncoll (const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 71 | _CRTIMP int __cdecl _strncoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 72 | _CRTIMP int __cdecl _strnicoll (const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 73 | _CRTIMP int __cdecl _strnicoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 74 | size_t __cdecl strcspn(const char *_Str,const char *_Control); |
| 75 | _CRTIMP char *__cdecl _strerror(const char *_ErrMsg) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 76 | _CRTIMP char *__cdecl strerror(int) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 77 | _CRTIMP char *__cdecl _strlwr(char *_String) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 78 | char *strlwr_l(char *_String,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 79 | char *__cdecl strncat(char * __restrict__ _Dest,const char * __restrict__ _Source,size_t _Count) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 80 | int __cdecl strncmp(const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 81 | _CRTIMP int __cdecl _strnicmp(const char *_Str1,const char *_Str2,size_t _MaxCount); |
| 82 | _CRTIMP int __cdecl _strnicmp_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 83 | char *strncpy(char * __restrict__ _Dest,const char * __restrict__ _Source,size_t _Count) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 84 | _CRTIMP char *__cdecl _strnset(char *_Str,int _Val,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 85 | _CRTIMP char *__cdecl _strnset_l(char *str,int c,size_t count,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 86 | _CONST_RETURN char *__cdecl strpbrk(const char *_Str,const char *_Control); |
| 87 | _CONST_RETURN char *__cdecl strrchr(const char *_Str,int _Ch); |
| 88 | _CRTIMP char *__cdecl _strrev(char *_Str); |
| 89 | size_t __cdecl strspn(const char *_Str,const char *_Control); |
| 90 | _CONST_RETURN char *__cdecl strstr(const char *_Str,const char *_SubStr); |
| 91 | _CRTIMP char *__cdecl strtok(char * __restrict__ _Str,const char * __restrict__ _Delim) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 92 | #pragma push_macro("strtok_r") |
| 93 | #undef strtok_r |
| 94 | char *strtok_r(char * __restrict__ _Str, const char * __restrict__ _Delim, char ** __restrict__ __last); |
| 95 | #pragma pop_macro("strtok_r") |
| 96 | _CRTIMP char *__cdecl _strupr(char *_String) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 97 | _CRTIMP char *_strupr_l(char *_String,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 98 | _CRTIMP size_t __cdecl strxfrm(char * __restrict__ _Dst,const char * __restrict__ _Src,size_t _MaxCount); |
| 99 | _CRTIMP size_t __cdecl _strxfrm_l(char * __restrict__ _Dst,const char * __restrict__ _Src,size_t _MaxCount,_locale_t _Locale); |
| 100 | |
| 101 | #ifndef	NO_OLDNAMES |
| 102 | #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
| 103 | #pragma push_macro("strdup") |
| 104 | #undef strdup |
| 105 | #endif |
| 106 | char *__cdecl strdup(const char *_Src) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 107 | #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
| 108 | #pragma pop_macro("strdup") |
| 109 | #endif |
| 110 | int __cdecl strcmpi(const char *_Str1,const char *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 111 | int __cdecl stricmp(const char *_Str1,const char *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 112 | char *__cdecl strlwr(char *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 113 | int __cdecl strnicmp(const char *_Str1,const char *_Str,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 114 | int __cdecl strncasecmp (const char *, const char *, size_t); |
| 115 | int __cdecl strcasecmp (const char *, const char *); |
| 116 | char *__cdecl strnset(char *_Str,int _Val,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 117 | char *__cdecl strrev(char *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 118 | char *__cdecl strset(char *_Str,int _Val) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 119 | char *__cdecl strupr(char *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 120 | #endif |
| 121 | |
| 122 | #ifndef _WSTRING_DEFINED |
| 123 | #define _WSTRING_DEFINED |
| 124 | |
| 125 | #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
| 126 | #pragma push_macro("_wcsdup") |
| 127 | #undef _wcsdup |
| 128 | #endif |
| 129 | _CRTIMP wchar_t *__cdecl _wcsdup(const wchar_t *_Str); |
| 130 | #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
| 131 | #pragma pop_macro("_wcsdup") |
| 132 | #endif |
| 133 | wchar_t *__cdecl wcscat(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 134 | _CONST_RETURN wchar_t *__cdecl wcschr(const wchar_t *_Str,wchar_t _Ch); |
| 135 | int __cdecl wcscmp(const wchar_t *_Str1,const wchar_t *_Str2); |
| 136 | wchar_t *__cdecl wcscpy(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 137 | size_t __cdecl wcscspn(const wchar_t *_Str,const wchar_t *_Control); |
| 138 | size_t __cdecl wcslen(const wchar_t *_Str); |
| 139 | size_t __cdecl wcsnlen(const wchar_t *_Src,size_t _MaxCount); |
| 140 | wchar_t *wcsncat(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 141 | int __cdecl wcsncmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); |
| 142 | wchar_t *wcsncpy(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 143 | wchar_t *__cdecl _wcsncpy_l(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 144 | _CONST_RETURN wchar_t *__cdecl wcspbrk(const wchar_t *_Str,const wchar_t *_Control); |
| 145 | _CONST_RETURN wchar_t *__cdecl wcsrchr(const wchar_t *_Str,wchar_t _Ch); |
| 146 | size_t __cdecl wcsspn(const wchar_t *_Str,const wchar_t *_Control); |
| 147 | _CONST_RETURN wchar_t *__cdecl wcsstr(const wchar_t *_Str,const wchar_t *_SubStr); |
| 148 | _CRTIMP wchar_t *__cdecl wcstok(wchar_t * __restrict__ _Str,const wchar_t * __restrict__ _Delim,wchar_t ** __restrict__ _Ptr) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 149 | _CRTIMP wchar_t *__cdecl _wcstok(wchar_t * __restrict__ _Str,const wchar_t * __restrict__ _Delim) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 150 | #if defined(_CRT_NON_CONFORMING_WCSTOK) && !defined(__cplusplus) |
| 151 | #define wcstok _wcstok |
| 152 | #endif |
| 153 | #if !defined(_CRT_NO_INLINE_DEPRECATED_WCSTOK) && defined(__cplusplus) |
| 154 | extern "C++" inline wchar_t *__cdecl wcstok(wchar_t * __restrict__ _Str,const wchar_t * __restrict__ _Delim) { return _wcstok(_Str, _Delim); } |
| 155 | #endif |
| 156 | _CRTIMP wchar_t *__cdecl _wcserror(int _ErrNum) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 157 | _CRTIMP wchar_t *__cdecl __wcserror(const wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 158 | _CRTIMP int __cdecl _wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2); |
| 159 | _CRTIMP int __cdecl _wcsicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale); |
| 160 | _CRTIMP int __cdecl _wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); |
| 161 | _CRTIMP int __cdecl _wcsnicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 162 | _CRTIMP wchar_t *__cdecl _wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 163 | _CRTIMP wchar_t *__cdecl _wcsrev(wchar_t *_Str); |
| 164 | _CRTIMP wchar_t *__cdecl _wcsset(wchar_t *_Str,wchar_t _Val) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 165 | _CRTIMP wchar_t *__cdecl _wcslwr(wchar_t *_String) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 166 | _CRTIMP wchar_t *_wcslwr_l(wchar_t *_String,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 167 | _CRTIMP wchar_t *__cdecl _wcsupr(wchar_t *_String) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 168 | _CRTIMP wchar_t *_wcsupr_l(wchar_t *_String,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; |
| 169 | _CRTIMP size_t __cdecl wcsxfrm(wchar_t * __restrict__ _Dst,const wchar_t * __restrict__ _Src,size_t _MaxCount); |
| 170 | _CRTIMP size_t __cdecl _wcsxfrm_l(wchar_t * __restrict__ _Dst,const wchar_t * __restrict__ _Src,size_t _MaxCount,_locale_t _Locale); |
| 171 | _CRTIMP int __cdecl wcscoll(const wchar_t *_Str1,const wchar_t *_Str2); |
| 172 | _CRTIMP int __cdecl _wcscoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale); |
| 173 | _CRTIMP int __cdecl _wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2); |
| 174 | _CRTIMP int __cdecl _wcsicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale); |
| 175 | _CRTIMP int __cdecl _wcsncoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); |
| 176 | _CRTIMP int __cdecl _wcsncoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 177 | _CRTIMP int __cdecl _wcsnicoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); |
| 178 | _CRTIMP int __cdecl _wcsnicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale); |
| 179 | |
| 180 | #ifndef	NO_OLDNAMES |
| 181 | #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
| 182 | #pragma push_macro("wcsdup") |
| 183 | #undef wcsdup |
| 184 | #endif |
| 185 | wchar_t *__cdecl wcsdup(const wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 186 | #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) |
| 187 | #pragma pop_macro("wcsdup") |
| 188 | #endif |
| 189 | #define wcswcs wcsstr |
| 190 | int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 191 | int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 192 | wchar_t *__cdecl wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 193 | wchar_t *__cdecl wcsrev(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 194 | wchar_t *__cdecl wcsset(wchar_t *_Str,wchar_t _Val) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 195 | wchar_t *__cdecl wcslwr(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 196 | wchar_t *__cdecl wcsupr(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 197 | int __cdecl wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005; |
| 198 | #endif |
| 199 | #endif |
| 200 | |
| 201 | #ifdef __cplusplus |
| 202 | } |
| 203 | #endif |
| 204 | |
| 205 | #include <sec_api/string_s.h> |
| 206 | |
| 207 | #if __MINGW_FORTIFY_LEVEL > 0 |
| 208 | #ifdef __cplusplus |
| 209 | extern "C" { |
| 210 | #endif |
| 211 | |
| 212 | __mingw_bos_declare; |
| 213 | |
| 214 | __mingw_bos_extern_ovr |
| 215 | void * memcpy(void * __restrict__ __dst, const void * __restrict__ __src, size_t __n) |
| 216 | { |
| 217 | return __builtin___memcpy_chk(__dst, __src, __n, __mingw_bos(__dst, 0)); |
| 218 | } |
| 219 | |
| 220 | __mingw_bos_extern_ovr |
| 221 | void * memset(void * __dst, int __val, size_t __n) |
| 222 | { |
| 223 | return __builtin___memset_chk(__dst, __val, __n, __mingw_bos(__dst, 0)); |
| 224 | } |
| 225 | |
| 226 | __mingw_bos_extern_ovr |
| 227 | void * memmove(void * __dst, const void * __src, size_t __n) |
| 228 | { |
| 229 | return __builtin___memmove_chk(__dst, __src, __n, __mingw_bos(__dst, 0)); |
| 230 | } |
| 231 | |
| 232 | #ifdef _GNU_SOURCE |
| 233 | __mingw_bos_extern_ovr |
| 234 | void * mempcpy(void * __dst, const void * __src, size_t __n) |
| 235 | { |
| 236 | return __builtin___mempcpy_chk(__dst, __src, __n, __mingw_bos(__dst, 0)); |
| 237 | } |
| 238 | #endif /* _GNU_SOURCE */ |
| 239 | |
| 240 | __mingw_bos_extern_ovr |
| 241 | char * strcpy(char * __restrict__ __dst, const char * __restrict__ __src) |
| 242 | { |
| 243 | return __builtin___strcpy_chk(__dst, __src, __mingw_bos(__dst, 1)); |
| 244 | } |
| 245 | |
| 246 | __mingw_bos_extern_ovr |
| 247 | char * strcat(char * __restrict__ __dst, const char * __restrict__ __src) |
| 248 | { |
| 249 | return __builtin___strcat_chk(__dst, __src, __mingw_bos(__dst, 1)); |
| 250 | } |
| 251 | |
| 252 | __mingw_bos_extern_ovr |
| 253 | char * strncpy(char * __restrict__ __dst, const char * __restrict__ __src, size_t __n) |
| 254 | { |
| 255 | return __builtin___strncpy_chk(__dst, __src, __n, __mingw_bos(__dst, 1)); |
| 256 | } |
| 257 | |
| 258 | __mingw_bos_extern_ovr |
| 259 | char * strncat(char * __restrict__ __dst, const char * __restrict__ __src, size_t __n) |
| 260 | { |
| 261 | return __builtin___strncat_chk(__dst, __src, __n, __mingw_bos(__dst, 1)); |
| 262 | } |
| 263 | |
| 264 | _SECIMP errno_t __cdecl __mingw_call_memcpy_s(void *, size_t, const void *, size_t) __MINGW_ASM_CRT_CALL(memcpy_s); |
| 265 | wchar_t * __cdecl __mingw_call_wcscpy(wchar_t * __restrict__, const wchar_t * __restrict__) __MINGW_ASM_CALL(wcscpy); |
| 266 | wchar_t * __cdecl __mingw_call_wcscat(wchar_t * __restrict__, const wchar_t * __restrict__) __MINGW_ASM_CALL(wcscat); |
| 267 | |
| 268 | __mingw_bos_extern_ovr |
| 269 | errno_t memcpy_s(void * __dst, size_t __os, const void * __src, size_t __n) |
| 270 | { |
| 271 | __mingw_bos_ptr_chk_warn(__dst, __os, 0); |
| 272 | return __mingw_call_memcpy_s(__dst, __os, __src, __n); |
| 273 | } |
| 274 | |
| 275 | __mingw_bos_extern_ovr |
| 276 | wchar_t * wcscpy(wchar_t * __restrict__ __dst, const wchar_t * __restrict__ __src) |
| 277 | { |
| 278 | if (__mingw_bos_known(__dst)) { |
| 279 | __mingw_bos_cond_chk(!wcscpy_s(__dst, __mingw_bos(__dst, 1) / sizeof(wchar_t), __src)); |
| 280 | return __dst; |
| 281 | } |
| 282 | return __mingw_call_wcscpy(__dst, __src); |
| 283 | } |
| 284 | |
| 285 | __mingw_bos_extern_ovr |
| 286 | wchar_t * wcscat(wchar_t * __restrict__ __dst, const wchar_t * __restrict__ __src) |
| 287 | { |
| 288 | if (__mingw_bos_known(__dst)) { |
| 289 | __mingw_bos_cond_chk(!wcscat_s(__dst, __mingw_bos(__dst, 1) / sizeof(wchar_t), __src)); |
| 290 | return __dst; |
| 291 | } |
| 292 | return __mingw_call_wcscat(__dst, __src); |
| 293 | } |
| 294 | |
| 295 | #ifdef __cplusplus |
| 296 | } |
| 297 | #endif |
| 298 | #endif /* __MINGW_FORTIFY_LEVEL > 0 */ |
| 299 | |
| 300 | #endif |