]> diplodocus.org Git - nmh/blobdiff - sbr/read_switch.c
One last fix to test-charset.
[nmh] / sbr / read_switch.c
index bb24dd4c770fcfca4553601bb0b46d7bbdea8ef5..c700243b011388e5f16bf0c51ac85b20a4b9a394 100644 (file)
@@ -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;