Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdlib / mbsrtowcs.c
blob82589c6067997750dce02ce2d4e3eae425ed7401
1 /* doc in mbsnrtowcs.c */
3 #include <reent.h>
4 #include <newlib.h>
5 #include <wchar.h>
6 #include <stdlib.h>
7 #include <stdio.h>
8 #include <errno.h>
10 size_t
11 _mbsrtowcs_r (struct _reent *r,
12 wchar_t *dst,
13 const char **src,
14 size_t len,
15 mbstate_t *ps)
17 return _mbsnrtowcs_r (r, dst, src, (size_t) -1, len, ps);
20 #ifndef _REENT_ONLY
21 size_t
22 mbsrtowcs (wchar_t *__restrict dst,
23 const char **__restrict src,
24 size_t len,
25 mbstate_t *__restrict ps)
27 return _mbsnrtowcs_r (_REENT, dst, src, (size_t) -1, len, ps);
29 #endif /* !_REENT_ONLY */