From 5b4f25c6e9c9b37dcda00bd4a94aabeffeed31b0 Mon Sep 17 00:00:00 2001 From: tjr 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/wchar.h') diff --git a/include/wchar.h b/include/wchar.h index c1aaf78..39b74e8 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.1