sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 471cf8f5bc2469803f0a98198839d28810afae60
parent 17dad35015536e5453635da224c51274d646d5ec
Author: FRIGN <dev@frign.de>
Date:   Wed, 11 Feb 2015 13:24:59 +0100

Use runetypebody.h-functions in wc(1)

Diffstat:
Mwc.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/wc.c b/wc.c @@ -1,9 +1,6 @@ /* See LICENSE file for copyright and license details. */ -#include <ctype.h> #include <stdio.h> -#include <stdlib.h> #include <unistd.h> -#include <wctype.h> #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;