-
-/*
- * 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
}
for (;;) {
- printf ("%s", prompt);
+ fputs(prompt, stdout);
fflush (stdout);
cp = ansbuf;
while ((i = getchar ()) != '\n') {
}
*cp = '\0';
if (ansbuf[0] == '?' || cp == ansbuf) {
- printf ("Options are:\n");
+ puts("Options are:");
print_sw (ALL, ansp, "", stdout);
continue;
}