1 /* Doc in wcsnrtombs.c */
2 
3 #include <reent.h>
4 #include <newlib.h>
5 #include <wchar.h>
6 
7 size_t
8 _DEFUN (_wcsrtombs_r, (r, dst, src, len, ps),
9 	struct _reent *r _AND
10 	char *dst _AND
11 	const wchar_t **src _AND
12 	size_t len _AND
13 	mbstate_t *ps)
14 {
15   return _wcsnrtombs_r (r, dst, src, (size_t) -1, len, ps);
16 }
17 
18 #ifndef _REENT_ONLY
19 size_t
20 _DEFUN (wcsrtombs, (dst, src, len, ps),
21 	char *__restrict dst _AND
22 	const wchar_t **__restrict src _AND
23 	size_t len _AND
24 	mbstate_t *__restrict ps)
25 {
26   return _wcsnrtombs_r (_REENT, dst, src, (size_t) -1, len, ps);
27 }
28 #endif /* !_REENT_ONLY */
29