diff options
Diffstat (limited to 'newlib/libc/stdio/ssputws_r.c')
-rw-r--r-- | newlib/libc/stdio/ssputws_r.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/newlib/libc/stdio/ssputws_r.c b/newlib/libc/stdio/ssputws_r.c new file mode 100644 index 0000000..07ceba8 --- /dev/null +++ b/newlib/libc/stdio/ssputws_r.c @@ -0,0 +1,21 @@ +#include <newlib.h> + +#ifndef _FVWRITE_IN_STREAMIO + +#include <reent.h> +#include <stdio.h> +#include <wchar.h> + +extern int __ssputs_r (struct _reent *ptr, FILE *fp, const char *buf, + size_t len); + +int +__ssputws_r (struct _reent *ptr, + FILE *fp, + const wchar_t *buf, + size_t len) +{ + return __ssputs_r (ptr, fp, (const char *) buf, len * sizeof (wchar_t)); +} + +#endif |