]> diplodocus.org Git - nmh/blobdiff - sbr/read_switch_multiword.c
mhbuildsbr.c: Flip logic, moving goto to then-block; no need for else.
[nmh] / sbr / read_switch_multiword.c
index 582e11f92e0c71d280baef027aa3a537e69e55d4..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') {