Extract usage information into a separate file.
This commit is contained in:
13
head.c
13
head.c
@ -26,17 +26,6 @@
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
|
||||
const char head_usage[] =
|
||||
"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"
|
||||
#endif
|
||||
;
|
||||
|
||||
int head(int len, FILE * src)
|
||||
{
|
||||
int i;
|
||||
@ -111,4 +100,4 @@ int head_main(int argc, char **argv)
|
||||
return(0);
|
||||
}
|
||||
|
||||
/* $Id: head.c,v 1.12 2000/07/14 01:51:25 kraai Exp $ */
|
||||
/* $Id: head.c,v 1.13 2000/07/16 20:57:15 kraai Exp $ */
|
||||
|
Reference in New Issue
Block a user