X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/23f2b007ecac94848616420b27f0819ea559507e..67dc75818d2a5905e09851feeb9dba23f815dd67:/sbr/read_switch_multiword.c?ds=sidebyside diff --git a/sbr/read_switch_multiword.c b/sbr/read_switch_multiword.c index f653a7fe..3521c5b5 100644 --- a/sbr/read_switch_multiword.c +++ b/sbr/read_switch_multiword.c @@ -1,6 +1,4 @@ - -/* - * read_switch_multiword.c -- get an answer from the user and return a string array +/* read_switch_multiword.c -- get an answer from the user and return a string array * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -35,7 +33,7 @@ read_switch_multiword (const char *prompt, const struct swit *ansp) } for (;;) { - printf ("%s", prompt); + fputs(prompt, stdout); fflush (stdout); cp = ansbuf; while ((i = getchar ()) != '\n') { @@ -74,7 +72,7 @@ read_switch_multiword (const char *prompt, const struct swit *ansp) } *cp = '\0'; if (ansbuf[0] == '?' || cp == ansbuf) { - printf ("Options are:\n"); + puts("Options are:"); print_sw (ALL, ansp, "", stdout); continue; }