David Schultz
8e31b96c07
Use getline() instead of fgets(). This enables nl(1) to handle
...
arbitrarily long lines and embedded NULs. The new functionality is
nugatory, but adding it is a simple way to improve the exposure of
getline() in -CURRENT.
2009-02-28 15:53:36 +00:00
Warner Losh
353bb0a3f8
Avoid 'bogus' uninitialized warning by initializing rather than
...
playing cute games. It is much simpler, clearer and easier to follow
and understand. Besides, gcc4 likes it better.
2006-12-22 05:54:19 +00:00
Stefan Farfeleder
6c97c3d1d3
Remove unused variables.
2005-04-09 14:31:41 +00:00
Tim J. Robbins
33ec7f265b
Add support for multibyte characters.
2004-07-13 02:18:21 +00:00
Tim J. Robbins
7007f3d660
Tidy up usage message.
2003-08-17 10:33:54 +00:00
Juli Mallett
3a7fc8ce59
Remove local prototypes for main().
2002-08-19 03:07:56 +00:00
Tim J. Robbins
66f9c15fcf
The XCU issue 5 requirement of accepting the file operand intermingled
...
with options has been withdrawn in issue 6, to which nl(1) now conforms.
2002-05-27 06:53:54 +00:00
Tim J. Robbins
53e29ec5b4
style(9): use errx() where appropriate instead of fprintf() + exit().
2002-05-27 06:46:29 +00:00
Tim J. Robbins
f1e20ff77e
style(9): use err() instead of perror() + exit().
2002-05-27 06:37:34 +00:00
Warner Losh
d3cb5ded92
remove __P
2002-03-22 01:33:25 +00:00
Ruslan Ermilov
8af1452cf8
Removed duplicate VCS ID tags, as per style(9).
2001-08-13 14:06:34 +00:00
Brian Somers
f21559815d
Add nl(1)
...
PR: 27078
Obtained from: NetBSD
2001-05-04 17:25:23 +00:00