[hackers] [sbase] Use runetypebody.h-functions in wc(1) || FRIGN

From: <git_AT_suckless.org>
Date: Wed, 11 Feb 2015 15:51:19 +0100 (CET)

commit 5994a9ec540d99e57b622dba9c154b3e25b55519
Author: FRIGN <dev_AT_frign.de>
Date: Wed Feb 11 13:24:59 2015 +0100

    Use runetypebody.h-functions in wc(1)

diff --git a/wc.c b/wc.c
index 6316aea..e782950 100644
--- a/wc.c
+++ b/wc.c
_AT_@ -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"
_AT_@ -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;
Received on Wed Feb 11 2015 - 15:51:19 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 11 2015 - 16:00:11 CET