Added -nocontentid (and -contentid, for symmetry) switch to mhbuild. This allows...
[mmh] / sbr / context_find.c
1
2 /*
3  * context_find.c -- find an entry in the context/profile list
4  *
5  * $Id$
6  *
7  * This code is Copyright (c) 2002, by the authors of nmh.  See the
8  * COPYRIGHT file in the root directory of the nmh distribution for
9  * complete copyright information.
10  */
11
12 #include <h/mh.h>
13
14
15 char *
16 context_find (char *str)
17 {
18     struct node *np;
19
20     for (np = m_defs; np; np = np->n_next)
21         if (!strcasecmp (np->n_name, str))
22             return (np->n_field);
23
24     return NULL;
25 }