X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f8e99abf0aed17906b1efacaad9df24f217e4096..2fd34743d19049035fc566b10a0d40cd88231c3c:/sbr/read_switch.c diff --git a/sbr/read_switch.c b/sbr/read_switch.c index bb24dd4c..8ca0be33 100644 --- a/sbr/read_switch.c +++ b/sbr/read_switch.c @@ -1,6 +1,4 @@ - -/* - * read_switch.c -- prompt the user for an answer from the list +/* read_switch.c -- prompt the user for an answer from the list * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -19,7 +17,7 @@ read_switch (const char *prompt, const struct swit *ansp) char ansbuf[BUFSIZ]; for (;;) { - printf ("%s", prompt); + fputs(prompt, stdout); fflush (stdout); cp = ansbuf; while ((i = getchar ()) != '\n') { @@ -32,7 +30,7 @@ read_switch (const char *prompt, const struct swit *ansp) } *cp = '\0'; if (ansbuf[0] == '?' || cp == ansbuf) { - printf ("Options are:\n"); + puts("Options are:"); for (ap = ansp; ap->sw; ap++) printf (" %s\n", ap->sw); continue;