diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-06-14 18:10:24 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-06-14 18:10:24 +0200 |
commit | b54e5d1c9257cf1f55f46613aa438bce8fe73d10 (patch) | |
tree | 9eb9c7488dee38d204f98a88e154d7bd959490a6 /include | |
parent | 454a20c8756c9c1d55419153255fc7692b3d2199 (diff) | |
download | glibc-b54e5d1c9257cf1f55f46613aa438bce8fe73d10.tar.gz glibc-b54e5d1c9257cf1f55f46613aa438bce8fe73d10.tar.xz glibc-b54e5d1c9257cf1f55f46613aa438bce8fe73d10.zip |
Add the wcslcpy, wcslcat functions
These functions are about to be added to POSIX, under Austin Group issue 986. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/wchar.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wchar.h b/include/wchar.h index fafe7c8e9b..ff4ae52045 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -203,6 +203,8 @@ extern size_t __wcslen (const wchar_t *__s) __attribute_pure__; extern size_t __wcsnlen (const wchar_t *__s, size_t __maxlen) __attribute_pure__; extern wchar_t *__wcscat (wchar_t *dest, const wchar_t *src); +extern __typeof (wcslcat) __wcslcat; +libc_hidden_proto (__wcslcat) extern wint_t __btowc (int __c) attribute_hidden; extern int __mbsinit (const __mbstate_t *__ps); extern size_t __mbrtowc (wchar_t *__restrict __pwc, @@ -237,8 +239,11 @@ extern wchar_t *__wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) attribute_hidden __nonnull ((1, 2)); libc_hidden_proto (__wcscpy) +extern __typeof (wcslcpy) __wcslcpy; +libc_hidden_proto (__wcslcpy) extern wchar_t *__wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n); + extern wchar_t *__wcpcpy (wchar_t *__dest, const wchar_t *__src); extern wchar_t *__wcpncpy (wchar_t *__dest, const wchar_t *__src, size_t __n); |