]> diplodocus.org Git - nmh/blobdiff - sbr/read_switch_multiword.c
Added test case for commit 4318012376e06229307c0ed4f62a00faae9edc63.
[nmh] / sbr / read_switch_multiword.c
index f653a7fe6b01ac5ae7c76ffd97c60079c6061f33..ddacfa2d78026ee9e2b9aafef9f54a83dedeb7cc 100644 (file)
@@ -35,7 +35,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 +74,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;
        }