]> diplodocus.org Git - nmh/blobdiff - sbr/print_help.c
Added m_str() and m_strn() functions to convert int to string.
[nmh] / sbr / print_help.c
index 813a1cb288d7ffd75fb1f3ec12e543dedbbb1548..37834ae18fca40c19ae623b5a81763e12563c1ad 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * print_help.c -- print a help message, and possibly the
+/* print_help.c -- print a help message, and possibly the
  *              -- profile/context entries for this command
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  *              -- profile/context entries for this command
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
@@ -20,7 +18,7 @@ print_help (char *str, struct swit *swp, int print_context)
     printf ("Usage: %s\n", str);
 
     /* print all the switches */
     printf ("Usage: %s\n", str);
 
     /* print all the switches */
-    printf ("  switches are:\n");
+    puts("  switches are:");
     print_sw (ALL, swp, "-", stdout);
 
     /*
     print_sw (ALL, swp, "-", stdout);
 
     /*
@@ -31,7 +29,7 @@ print_help (char *str, struct swit *swp, int print_context)
     }
 
     /* and for further info */
     }
 
     /* and for further info */
-    puts ("");
+    putchar('\n');
     print_intro (stdout, TRUE);
     puts ("\nSee the BUGS section of the nmh(7) man page for more information.");
 }
     print_intro (stdout, TRUE);
     puts ("\nSee the BUGS section of the nmh(7) man page for more information.");
 }