From 0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 12 Feb 2011 00:22:29 -0500 Subject: initial check-in, version 0.5.0 --- src/multibyte/wctob.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/multibyte/wctob.c (limited to 'src/multibyte/wctob.c') diff --git a/src/multibyte/wctob.c b/src/multibyte/wctob.c new file mode 100644 index 0000000..d6353ee --- /dev/null +++ b/src/multibyte/wctob.c @@ -0,0 +1,8 @@ +#include +#include + +int wctob(wint_t c) +{ + if (c < 128U) return c; + return EOF; +} -- cgit v1.1