summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-07-21 10:54:57 +0000
committertjr <tjr@FreeBSD.org>2004-07-21 10:54:57 +0000
commit5b4f25c6e9c9b37dcda00bd4a94aabeffeed31b0 (patch)
tree1c3c81fbcfab80a357977aa6546dc3166c9d5257 /include
parentf892b6158fb86942cd8cee58017eded760b7546d (diff)
downloadFreeBSD-src-5b4f25c6e9c9b37dcda00bd4a94aabeffeed31b0.zip
FreeBSD-src-5b4f25c6e9c9b37dcda00bd4a94aabeffeed31b0.tar.gz
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.
Diffstat (limited to 'include')
-rw-r--r--include/wchar.h4
1 files changed, 4 insertions, 0 deletions
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
OpenPOWER on IntegriCloud