Comment on kernel stuff
[oweals/busybox.git] / coreutils / head.c
index 82a73de2a2e35b7fe2d766057b98e305b8ce6fcf..f42f4837d323a6bddad94ea6cc6cd41a7a7675ea 100644 (file)
@@ -3,7 +3,7 @@
  * Mini head implementation for busybox
  *
  *
- * Copyright (C) 1999 by Lineo, inc.
+ * Copyright (C) 1999,2000 by Lineo, inc.
  * Written by John Beppu <beppu@lineo.com>
  *
  * This program is free software; you can redistribute it and/or modify
 #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.8 2000/02/08 19:58:47 erik Exp $ */
+/* $Id: head.c,v 1.11 2000/06/19 17:25:39 andersen Exp $ */