diff options
author | tjr <tjr@FreeBSD.org> | 2002-09-18 05:58:11 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-09-18 05:58:11 +0000 |
commit | 5bb288ec923336fc582dae1b5ee61a4965037b5f (patch) | |
tree | 89b31678132bc76b873bf1bba095a04aa70ff775 /lib/libc/stdio/fputws.c | |
parent | 2db6065cba040afe3448b330df0a30ed74c303da (diff) | |
download | FreeBSD-src-5bb288ec923336fc582dae1b5ee61a4965037b5f.zip FreeBSD-src-5bb288ec923336fc582dae1b5ee61a4965037b5f.tar.gz |
Reimplement the functionality of fgetrune(), fputrune(), and fungetrune()
here in terms of mbrtowc(), wcrtomb(), and the single-byte I/O functions.
The rune I/O functions are about to become deprecated in favour of the
ones provided by ISO C90 Amd. 1 and C99.
Diffstat (limited to 'lib/libc/stdio/fputws.c')
-rw-r--r-- | lib/libc/stdio/fputws.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/stdio/fputws.c b/lib/libc/stdio/fputws.c index 312d02a..254b4f9 100644 --- a/lib/libc/stdio/fputws.c +++ b/lib/libc/stdio/fputws.c @@ -29,7 +29,6 @@ __FBSDID("$FreeBSD$"); #include "namespace.h" #include <errno.h> -#include <rune.h> #include <stdio.h> #include <wchar.h> #include "un-namespace.h" @@ -44,7 +43,7 @@ fputws(const wchar_t * __restrict ws, FILE * __restrict fp) /* XXX Inefficient */ while (*ws != '\0') - if (fputrune((rune_t)*ws++, fp) == EOF) + if (fputwc(*ws++, fp) == WEOF) return (-1); return (0); |