diff options
Diffstat (limited to 'newlib/libc/stdlib/mbsinit.c')
-rw-r--r-- | newlib/libc/stdlib/mbsinit.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/mbsinit.c b/newlib/libc/stdlib/mbsinit.c new file mode 100644 index 0000000..a353cb1 --- /dev/null +++ b/newlib/libc/stdlib/mbsinit.c @@ -0,0 +1,14 @@ +#include <wchar.h> +#include <stdlib.h> +#include <stdio.h> +#include <reent.h> +#include <errno.h> + +int +mbsinit(const mbstate_t *ps) +{ + if (ps == NULL || ps->__count == 0) + return 1; + else + return 0; +} |