Comment on kernel stuff
[oweals/busybox.git] / coreutils / head.c
index 3db64b3bc256cdb1d229ac36c9b1a965ea06b3b6..f42f4837d323a6bddad94ea6cc6cd41a7a7675ea 100644 (file)
 #include <stdio.h>
 
 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)
 {
@@ -106,7 +109,7 @@ int head_main(int argc, char **argv)
                        }
                }
        }
-       exit(0);
+       return(0);
 }
 
-/* $Id: head.c,v 1.9 2000/04/13 01:18:56 erik Exp $ */
+/* $Id: head.c,v 1.11 2000/06/19 17:25:39 andersen Exp $ */