From 471cf8f5bc2469803f0a98198839d28810afae60 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Wed, 11 Feb 2015 13:24:59 +0100 Subject: [PATCH] Use runetypebody.h-functions in wc(1) --- wc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wc.c b/wc.c index 6316aea..e782950 100644 --- a/wc.c +++ b/wc.c @@ -1,9 +1,6 @@ /* See LICENSE file for copyright and license details. */ -#include #include -#include #include -#include #include "utf.h" #include "util.h" @@ -42,7 +39,7 @@ wc(FILE *fp, const char *str) (c != Runeerror) ? 1 : 0; if (c == '\n') nl++; - if (!iswspace(c)) + if (!isspacerune(c)) word = 1; else if (word) { word = 0;