From 7ab9c7ee52db8759d457819f5480378fa3aa97cc Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Fri, 12 May 2000 19:41:47 +0000 Subject: 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 --- head.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'head.c') diff --git a/head.c b/head.c index 3db64b3bc..f4ebe05c9 100644 --- a/head.c +++ b/head.c @@ -27,12 +27,15 @@ #include const char head_usage[] = - "head [OPTION] [FILE]...\n\n" - "Print first 10 lines of each FILE to standard output.\n" + "head [OPTION] [FILE]...\n" +#ifndef BB_FEATURE_TRIVIAL_HELP + "\nPrint first 10 lines of each FILE to standard output.\n" "With more than one FILE, precede each with a header giving the\n" "file name. With no FILE, or when FILE is -, read standard input.\n\n" - "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10\n"; + "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10\n" +#endif + ; int head(int len, FILE * src) { @@ -109,4 +112,4 @@ int head_main(int argc, char **argv) exit(0); } -/* $Id: head.c,v 1.9 2000/04/13 01:18:56 erik Exp $ */ +/* $Id: head.c,v 1.10 2000/05/12 19:41:47 erik Exp $ */ -- cgit v1.2.3