source: trunk/libs/newlib/src/newlib/libc/stdlib/mbsrtowcs.c @ 471

Last change on this file since 471 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 539 bytes
Line 
1/* doc in mbsnrtowcs.c */
2
3#include <reent.h>
4#include <newlib.h>
5#include <wchar.h>
6#include <stdlib.h>
7#include <stdio.h>
8#include <errno.h>
9
10size_t
11_mbsrtowcs_r (struct _reent *r,
12        wchar_t *dst,
13        const char **src,
14        size_t len,
15        mbstate_t *ps)
16{
17  return _mbsnrtowcs_r (r, dst, src, (size_t) -1, len, ps);
18}
19
20#ifndef _REENT_ONLY
21size_t
22mbsrtowcs (wchar_t *__restrict dst,
23        const char **__restrict src,
24        size_t len,
25        mbstate_t *__restrict ps)
26{
27  return _mbsnrtowcs_r (_REENT, dst, src, (size_t) -1, len, ps);
28}
29#endif /* !_REENT_ONLY */
Note: See TracBrowser for help on using the repository browser.