X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a5a1425258ffb1f72e853b6adc6ff0ae58c636bd..fcaa3047b2a23fc0c36be518d1ca1ea0b0cb3b66:/sbr/read_switch.c diff --git a/sbr/read_switch.c b/sbr/read_switch.c index 8553001a..1c3e851e 100644 --- a/sbr/read_switch.c +++ b/sbr/read_switch.c @@ -1,13 +1,13 @@ - -/* - * 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 +#include "h/mh.h" +#include "read_switch.h" +#include "smatch.h" int @@ -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') {