Commit Graph

38 Commits

Author SHA1 Message Date
perry
c9e98eabc1 de-__P, ANSIfy prototypes 2006-01-04 01:58:05 +00:00
agc
89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
wiz
d2c65fcc3e Mention -m in usage. bin/16594 by Ryan Younce. 2002-05-02 13:07:13 +00:00
enami
3a7e0fa1da Don't pass NULL to warn() etc. Instead, use "<stdin>" to warn about stdin. 2002-03-23 21:36:08 +00:00
enami
3d5c5b3128 Actually skip the first byte of invalid byte sequence. 2002-03-23 21:32:21 +00:00
enami
b56ea8bdbe One more; Don't put space before function call op. 2002-03-23 21:29:38 +00:00
enami
8e6517a8e3 - Remove unnecessary cast.
- Other misc. KNF changes.
2002-03-23 21:27:14 +00:00
enami
47df7c188e Fix whitespace usage. 2002-03-23 21:20:21 +00:00
enami
d84a397c7f Don't include same file twice. Sort includes alphabetically.
Don't place sys/*.h and *.h mixed.
2002-03-23 21:10:40 +00:00
wiz
10d6eb080d Drop duplicate .Pp. 2002-03-05 15:09:26 +00:00
ross
2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
yamt
f0b2b776f2 - implement -m.(count characters instead of bytes)
- use iswspace instead of isspace for -w.
2001-10-19 06:09:56 +00:00
kleink
c04da315b0 Normalize usage string. 1999-03-05 22:52:09 +00:00
mycroft
7b58b02044 Don't print a trailing space when counting from stdin. 1999-03-05 22:31:06 +00:00
mycroft
56e7b03238 Make the output format match what it used to be. 1999-03-05 22:24:01 +00:00
christos
40035ad56e Quad portability fixes:
- Use %llu instead of %qu
- Don't use quad types if NO_QUAD is defined
- Always cast to the appropriate type in printf.
1999-02-14 19:10:28 +00:00
mjacob
f16e878646 Hopefully somebody better at this than I can correct this somewhat
iffy change. The problem with the last checkin is twofold- first %q
should refer to quad_t, not u_int64_r. Second, for the alpha compiler,
%q is taken to be 'long long'- which is definitely not the same as
u_int64_t. Take home lesson- didn't build on alpha.

I thought about an #ifdef __alpha__- but that's wrong, so I put in a runtime
determinant to set a constant format string. Like I said, I hope somebody
better than I can fix it right.
1999-02-14 18:03:18 +00:00
explorer
4feda55de6 use u_int64_t for line, word, and character counts. It bothers me to see wc -c
return -2146435072 characters for files > 2G.
1999-02-13 15:53:17 +00:00
wsanchez
f873d81217 Use unsigned long instead of ulong 1998-10-13 17:03:39 +00:00
perry
34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
lukem
5f395129e4 fix .Nm usage 1997-10-20 03:14:32 +00:00
mrg
9ad099ee67 WARNSify; deprecate register; clean up .Nm 1997-10-20 02:40:25 +00:00
mycroft
004f255040 Use S_IS*(), not S_IF*. 1997-10-19 19:27:40 +00:00
mrg
8f798dca81 merge lite-2. 1997-10-18 16:48:29 +00:00
tls
9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
andrew
cfe33803b1 Fixed problems with wc -c when reading from stdin. 1994-01-03 03:11:06 +00:00
jtc
83efb17c8e Checkin minor tweaks before giving a copy to the FreeBSD folks. 1993-11-04 05:43:30 +00:00
jtc
029a63116f Streamline the char/word/line counting logic in anticipation of multibyte
character support.
1993-10-12 23:32:20 +00:00
jtc
a3d7805594 Like cat, set the return-value variable "rval" instead of exiting when
we encounter run-time errors.
Update usage message.
1993-10-12 22:39:43 +00:00
jtc
f7c6bf575a Minor tweaks: including header files to bring prototypes into scope,
explicitly declaring function return values, etc. to make gcc -Wall
shut up.
1993-08-27 22:30:10 +00:00
jtc
0942acadf0 Document that utility now conforms to IEEE 1003.2-1992. 1993-08-19 17:16:39 +00:00
jtc
e4e27724a6 Make wc 1003.2-1992 compliant by adding -m option (currently a noop, as
we don't support multibyte chars).
Remove blatant lie from manpage: the order of the output is, and always
has been, fixed.  The order of the command line arguments makes no difference.
1993-08-17 00:37:10 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft
d0f8d5d2bb Add RCS identifiers. 1993-07-30 22:28:22 +00:00
jtc
0264064592 Update to POSIX 1003.2 (D11.2) compliance.
Make error messages print leading "wc: ", so we know what program is
complaining when we're writing shell scripts.
Simplify argument parsing and total printing.
1993-07-15 21:05:12 +00:00
mrg
b579fe679d 4.4BSD-Lite2 1993-06-07 05:23:59 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00