From 1949a3470f29c5edaa5fc2770c2886d653fa68d1 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Wed, 21 Jul 2004 10:54:57 +0000 Subject: Implement the GNU extensions of mbsnrtowcs() and wcsnrtombs(). These are convenient when the source string isn't null-terminated. Implement the other conversion functions (mbstowcs(), mbsrtowcs(), wcstombs(), wcsrtombs()) in terms of these new functions. --- include/wchar.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/wchar.h b/include/wchar.h index c1aaf7812e71..39b74e8637ef 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -209,6 +209,10 @@ int wcwidth(wchar_t); #if __BSD_VISIBLE wchar_t *fgetwln(struct __sFILE * __restrict, size_t * __restrict); +size_t mbsnrtowcs(wchar_t * __restrict, const char ** __restrict, size_t, + size_t, mbstate_t * __restrict); +size_t wcsnrtombs(char * __restrict, const wchar_t ** __restrict, size_t, + size_t, mbstate_t * __restrict); size_t wcslcat(wchar_t *, const wchar_t *, size_t); size_t wcslcpy(wchar_t *, const wchar_t *, size_t); #endif -- cgit v1.3