/* read_switch_multiword.h -- get an answer from the user and return a string array * * This code is Copyright (c) 2017, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ /* * Print null-terminated PROMPT to and flush standard output. Read multi-word * answers from standard input until a first word matches an entry in SWITCHES. * When one matches, return a pointer to an array of pointers to the words. * Return NULL on EOF, interrupt, or other error. */ char **read_switch_multiword(const char *, const struct swit *);