diff options
author | tjr <tjr@FreeBSD.org> | 2002-08-11 10:52:13 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-08-11 10:52:13 +0000 |
commit | 40eb0ec9c329b12eaedb472b11a009c55c87b84a (patch) | |
tree | 0c7c1eb0106b14df80720734ace305fbf6cc2c92 /usr.bin/wc/wc.c | |
parent | 9e94669b318caf0f97ff31f3c8fe7deb5dfd3c1b (diff) | |
download | FreeBSD-src-40eb0ec9c329b12eaedb472b11a009c55c87b84a.zip FreeBSD-src-40eb0ec9c329b12eaedb472b11a009c55c87b84a.tar.gz |
Use the iswspace(3) function now that it's been implemented.
Diffstat (limited to 'usr.bin/wc/wc.c')
-rw-r--r-- | usr.bin/wc/wc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <stdlib.h> #include <string.h> #include <unistd.h> +#include <wctype.h> 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; |