]> diplodocus.org Git - nmh/blob - sbr/context_find.c
Formatting cleanup.
[nmh] / sbr / context_find.c
1
2 /*
3 * context_find.c -- find an entry in the context/profile list
4 *
5 * This code is Copyright (c) 2002, by the authors of nmh. See the
6 * COPYRIGHT file in the root directory of the nmh distribution for
7 * complete copyright information.
8 */
9
10 #include <h/mh.h>
11
12
13 char *
14 context_find (char *str)
15 {
16 struct node *np;
17
18 for (np = m_defs; np; np = np->n_next)
19 if (!mh_strcasecmp (np->n_name, str))
20 return (np->n_field);
21
22 return NULL;
23 }