summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/iswctype.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2002-08-17 20:30:34 +0000
committerache <ache@FreeBSD.org>2002-08-17 20:30:34 +0000
commit31acbd553db5444b1eeff89e279fbf0a10ecfe1b (patch)
tree1e5364fa4e881b907110d567a95dc1c405eef664 /lib/libc/locale/iswctype.c
parent75de318dfb292ab129bd06b5d754547a0104e5d7 (diff)
downloadFreeBSD-src-31acbd553db5444b1eeff89e279fbf0a10ecfe1b.zip
FreeBSD-src-31acbd553db5444b1eeff89e279fbf0a10ecfe1b.tar.gz
Move wcwidth() to separate file, it doesn't belong to iswctype.c at all
Diffstat (limited to 'lib/libc/locale/iswctype.c')
-rw-r--r--lib/libc/locale/iswctype.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/libc/locale/iswctype.c b/lib/libc/locale/iswctype.c
index dc3c52c..05d1329 100644
--- a/lib/libc/locale/iswctype.c
+++ b/lib/libc/locale/iswctype.c
@@ -212,13 +212,3 @@ towupper(wc)
return (__toupper(wc));
}
-int
-wcwidth(wc)
- wchar_t wc;
-{
- int width = __maskrune(wc, _CTYPE_SWM);
-
- return (width ? (unsigned)width >> _CTYPE_SWS
- : (iswprint(wc) ? 1 : -1));
-}
-
OpenPOWER on IntegriCloud