showlog: Implement --skip and --limit
commit5f1be92e8de0d058d9fb25e2851db7cf10425a8d
authorAndreas Ericsson <ae@op5.se>
Fri, 12 Mar 2010 22:58:43 +0000 (12 23:58 +0100)
committerAndreas Ericsson <ae@op5.se>
Fri, 12 Mar 2010 22:58:43 +0000 (12 23:58 +0100)
treef4c6019558edc6d921918076c063b8d63d41f749
parentaaa96a843b3d09e54de8a5d0593eb61b0895fe2d
showlog: Implement --skip and --limit

They do more or less what's expected of them.

--skip lets one skip X rows that should have been printed.

--limit makes the app print a maximum of --limit lines.

386 hardware imposes a limit of 4.2 billion lines for these two
variables, but I suppose we can live with that.

Signed-off-by: Andreas Ericsson <ae@op5.se>
showlog.c