aboutsummaryrefslogtreecommitdiff
path: root/coreutils/head.c
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-05-12 19:41:47 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-05-12 19:41:47 +0000
commit3a7ad24d94bc8ca3a532664af56e7d6a5bedc073 (patch)
tree37ef0fb8b142a4925b866c7caa5207b71b4ecae6 /coreutils/head.c
parent22aaf5064548757d7cd32cd4b7d96c78852cdd0c (diff)
downloadbusybox-w32-3a7ad24d94bc8ca3a532664af56e7d6a5bedc073.tar.gz
busybox-w32-3a7ad24d94bc8ca3a532664af56e7d6a5bedc073.tar.bz2
busybox-w32-3a7ad24d94bc8ca3a532664af56e7d6a5bedc073.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 git-svn-id: svn://busybox.net/trunk/busybox@532 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/head.c')
-rw-r--r--coreutils/head.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/coreutils/head.c b/coreutils/head.c
index 3db64b3bc..f4ebe05c9 100644
--- a/coreutils/head.c
+++ b/coreutils/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 $ */