1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-04 12:52:15 +00:00

Localize it.

This commit is contained in:
Andrey A. Chernov 1996-01-10 21:42:14 +00:00
parent 7b64106a9e
commit ae6fa8ae08
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13380

View File

@ -44,6 +44,7 @@ static char sccsid[] = "@(#)wc.c 8.1 (Berkeley) 6/6/93";
#include <sys/param.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <locale.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
@ -66,6 +67,8 @@ main(argc, argv)
register int ch;
int total;
(void) setlocale(LC_CTYPE, "");
while ((ch = getopt(argc, argv, "lwc")) != EOF)
switch((char)ch) {
case 'l':
@ -115,9 +118,9 @@ void
cnt(file)
char *file;
{
register u_char *p;
register u_char *p, ch;
register short gotsp;
register int ch, len;
register int len;
register u_long linect, wordct, charct;
struct stat sb;
int fd;