Commit Graph

25 Commits

Author SHA1 Message Date
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
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
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
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
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
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00