]>
diplodocus.org Git - nmh/blob - sbr/read_switch_multiword.h
1 /* read_switch_multiword.h -- get an answer from the user and return a string array
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. */
8 * Print null-terminated PROMPT to and flush standard output. Read multi-word
9 * answers from standard input until a first word matches an entry in SWITCHES.
10 * When one matches, return a pointer to an array of pointers to the words.
11 * Return NULL on EOF, interrupt, or other error.
13 char **read_switch_multiword(const char *, const struct swit
*);