2 ** context_del.c -- delete an entry from the context/profile list
4 ** This code is Copyright (c) 2002, by the authors of nmh. See the
5 ** COPYRIGHT file in the root directory of the nmh distribution for
6 ** complete copyright information.
12 ** Delete a key/value pair from the context/profile list.
13 ** Return 0 if key is found, else return 1.
17 context_del(char *key)
21 for (np = m_defs, pp = NULL; np; pp = np, np = np->n_next) {
22 if (!mh_strcasecmp(np->n_name, key)) {
24 admonish(NULL, "bug: context_del(key=\"%s\")", np->n_name);
26 pp->n_next = np->n_next;