]> diplodocus.org Git - nmh/blob - sbr/read_switch.h
sendsbr.c: Move interface to own file.
[nmh] / sbr / read_switch.h
1 /* read_switch.h -- prompt the user for an answer from the list
2 *
3 * This code is Copyright (c) 2017, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information. */
6
7 /*
8 * Print null-terminated PROMPT to and flush standard output. Read answers from
9 * standard input until one matches an entry in SWITCHES. When one matches,
10 * return its swret field. Return 0 on EOF.
11 */
12 int read_switch(const char *, const struct swit *);