Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdlib / wcsrtombs.c
blobdc4807d2a29ced4c19acc3d627f120318e6c546f
1 /* Doc in wcsnrtombs.c */
3 #include <reent.h>
4 #include <newlib.h>
5 #include <wchar.h>
7 size_t
8 _wcsrtombs_r (struct _reent *r,
9 char *dst,
10 const wchar_t **src,
11 size_t len,
12 mbstate_t *ps)
14 return _wcsnrtombs_r (r, dst, src, (size_t) -1, len, ps);
17 #ifndef _REENT_ONLY
18 size_t
19 wcsrtombs (char *__restrict dst,
20 const wchar_t **__restrict src,
21 size_t len,
22 mbstate_t *__restrict ps)
24 return _wcsnrtombs_r (_REENT, dst, src, (size_t) -1, len, ps);
26 #endif /* !_REENT_ONLY */