comparison toys.h @ 686:9414be56b1db

wc -m only cares about counting characters. Attached is a try on implementing it and some test cases for it. The test cases are only for UTF-8 locales.
author Felix Janda <felix.janda@posteo.de>
date Thu, 08 Nov 2012 11:19:07 -0600
parents 7e846e281e38
children 786841fdb1e0
comparison
equal deleted inserted replaced
685:38e07dba9b20 686:9414be56b1db
14 #include <fcntl.h> 14 #include <fcntl.h>
15 #include <grp.h> 15 #include <grp.h>
16 #include <inttypes.h> 16 #include <inttypes.h>
17 #include <limits.h> 17 #include <limits.h>
18 #include <libgen.h> 18 #include <libgen.h>
19 #include <locale.h>
19 #include <math.h> 20 #include <math.h>
20 #include <pty.h> 21 #include <pty.h>
21 #include <pwd.h> 22 #include <pwd.h>
22 #include <sched.h> 23 #include <sched.h>
23 #include <setjmp.h> 24 #include <setjmp.h>
44 #include <syslog.h> 45 #include <syslog.h>
45 #include <time.h> 46 #include <time.h>
46 #include <unistd.h> 47 #include <unistd.h>
47 #include <utime.h> 48 #include <utime.h>
48 #include <utmpx.h> 49 #include <utmpx.h>
50 #include <wchar.h>
51 #include <wctype.h>
49 52
50 #include "lib/lib.h" 53 #include "lib/lib.h"
51 #include "toys/e2fs.h" 54 #include "toys/e2fs.h"
52 55
53 // Get list of function prototypes for all enabled command_main() functions. 56 // Get list of function prototypes for all enabled command_main() functions.