]> diplodocus.org Git - nmh/blobdiff - sbr/read_switch_multiword.c
rcvtty.c: Remove duplicate prototype. Other in mts.h.
[nmh] / sbr / read_switch_multiword.c
index f653a7fe6b01ac5ae7c76ffd97c60079c6061f33..3521c5b5ec0e9f63af12b8277927d18509cb61c8 100644 (file)
@@ -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;
        }