summaryrefslogtreecommitdiff
path: root/head.c
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-12 19:41:47 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-12 19:41:47 +0000
commit7ab9c7ee52db8759d457819f5480378fa3aa97cc (patch)
tree37ef0fb8b142a4925b866c7caa5207b71b4ecae6 /head.c
parent3d427ac5efd249dc25dd03deb30520335f68911a (diff)
downloadbusybox-w32-7ab9c7ee52db8759d457819f5480378fa3aa97cc.tar.gz
busybox-w32-7ab9c7ee52db8759d457819f5480378fa3aa97cc.tar.bz2
busybox-w32-7ab9c7ee52db8759d457819f5480378fa3aa97cc.zip
Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP
which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
Diffstat (limited to 'head.c')
-rw-r--r--head.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/head.c b/head.c
index 3db64b3bc..f4ebe05c9 100644
--- a/head.c
+++ b/head.c
@@ -27,12 +27,15 @@
27#include <stdio.h> 27#include <stdio.h>
28 28
29const char head_usage[] = 29const char head_usage[] =
30 "head [OPTION] [FILE]...\n\n" 30 "head [OPTION] [FILE]...\n"
31 "Print first 10 lines of each FILE to standard output.\n" 31#ifndef BB_FEATURE_TRIVIAL_HELP
32 "\nPrint first 10 lines of each FILE to standard output.\n"
32 "With more than one FILE, precede each with a header giving the\n" 33 "With more than one FILE, precede each with a header giving the\n"
33 "file name. With no FILE, or when FILE is -, read standard input.\n\n" 34 "file name. With no FILE, or when FILE is -, read standard input.\n\n"
34 35
35 "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10\n"; 36 "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10\n"
37#endif
38 ;
36 39
37int head(int len, FILE * src) 40int head(int len, FILE * src)
38{ 41{
@@ -109,4 +112,4 @@ int head_main(int argc, char **argv)
109 exit(0); 112 exit(0);
110} 113}
111 114
112/* $Id: head.c,v 1.9 2000/04/13 01:18:56 erik Exp $ */ 115/* $Id: head.c,v 1.10 2000/05/12 19:41:47 erik Exp $ */