diff options
author | ache <ache@FreeBSD.org> | 2002-08-17 20:30:34 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-08-17 20:30:34 +0000 |
commit | 31acbd553db5444b1eeff89e279fbf0a10ecfe1b (patch) | |
tree | 1e5364fa4e881b907110d567a95dc1c405eef664 /lib/libc/locale/iswctype.c | |
parent | 75de318dfb292ab129bd06b5d754547a0104e5d7 (diff) | |
download | FreeBSD-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.c | 10 |
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)); -} - |