1 /*
2 Copyright (c) 2002 Thomas Fitzsimmons <fitzsim@redhat.com>
3 */
4 /* doc in mbsnrtowcs.c */
5
6 #define _DEFAULT_SOURCE
7 #include <newlib.h>
8 #include <wchar.h>
9 #include <stdlib.h>
10 #include <stdio.h>
11 #include <errno.h>
12
13 #ifndef _REENT_ONLY
14 size_t
mbsrtowcs(wchar_t * __restrict dst,const char ** __restrict src,size_t len,mbstate_t * __restrict ps)15 mbsrtowcs (wchar_t *__restrict dst,
16 const char **__restrict src,
17 size_t len,
18 mbstate_t *__restrict ps)
19 {
20 return mbsnrtowcs (dst, src, (size_t) -1, len, ps);
21 }
22 #endif /* !_REENT_ONLY */
23