X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f8e99abf0aed17906b1efacaad9df24f217e4096..f66fd42c75d104cdde28cc23de02bf4ddaf95d15:/sbr/read_switch.c?ds=sidebyside diff --git a/sbr/read_switch.c b/sbr/read_switch.c index bb24dd4c..c700243b 100644 --- a/sbr/read_switch.c +++ b/sbr/read_switch.c @@ -19,7 +19,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 +32,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;