X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fprint_help.c;h=039ab31fbea1e0045be5d8f144a5cc9901face28;hp=1ceeb8598e285a828dae0c42462a0160414f03f4;hb=b6823062c9806496b39ff12bf1fbe43ae127c96c;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/sbr/print_help.c b/sbr/print_help.c index 1ceeb85..039ab31 100644 --- a/sbr/print_help.c +++ b/sbr/print_help.c @@ -1,29 +1,30 @@ - /* - * print_help.c -- print a help message, and possibly the - * -- profile/context entries for this command - * - * $Id$ - */ +** 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 +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include void -print_help (char *str, struct swit *swp, int print_context) +print_help(char *str, struct swit *swp, int print_context) { - char *s; + char *s; - /* print Usage string */ - printf ("Usage: %s\n", str); + /* print Usage string */ + printf("Usage: %s\n", str); - /* print all the switches */ - printf (" switches are:\n"); - print_sw (ALL, swp, "-"); + /* print all the switches */ + printf(" switches are:\n"); + print_sw(ALL, swp, "-", stdout); - /* - * check if we should print any profile entries - */ - if (print_context && (s = context_find (invo_name))) - printf ("\nProfile: %s\n", s); + /* + ** check if we should print any profile entries + */ + if (print_context && (s = context_find(invo_name))) + printf("\nProfile: %s\n", s); }