-
-/*
- * read_switch.c -- prompt the user for an answer from the list
+/* read_switch.c -- prompt the user for an answer from the list
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
-#include <h/mh.h>
+#include "h/mh.h"
+#include "read_switch.h"
+#include "smatch.h"
int
char ansbuf[BUFSIZ];
for (;;) {
- printf ("%s", prompt);
+ fputs(prompt, stdout);
fflush (stdout);
cp = ansbuf;
while ((i = getchar ()) != '\n') {