From 40eb0ec9c329b12eaedb472b11a009c55c87b84a Mon Sep 17 00:00:00 2001 From: tjr Date: Sun, 11 Aug 2002 10:52:13 +0000 Subject: Use the iswspace(3) function now that it's been implemented. --- usr.bin/wc/wc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/wc/wc.c') diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c index 6eb2602..85a90c9 100644 --- a/usr.bin/wc/wc.c +++ b/usr.bin/wc/wc.c @@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include uintmax_t tlinect, twordct, tcharct; int doline, doword, dochar, domulti; @@ -234,8 +235,7 @@ word: gotsp = 1; p += clen; if (wch == L'\n') ++linect; - /* XXX Non-portable; should use iswspace() */ - if (isspace(wch)) + if (iswspace(wch)) gotsp = 1; else if (gotsp) { gotsp = 0; -- cgit v1.1