source: trunk/third/nmh/sbr/context_find.c @ 12455

Revision 12455, 478 bytes checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1
2/*
3 * context_find.c -- find an entry in the context/profile list
4 *
5 * $Id: context_find.c,v 1.1.1.1 1999-02-07 18:14:07 danw Exp $
6 */
7
8#include <h/mh.h>
9
10
11char *
12context_find (char *str)
13{
14    struct node *np;
15
16    /* sanity check - check that context has been read */
17    if (defpath == NULL)
18        adios (NULL, "oops, context hasn't been read yet");
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}
Note: See TracBrowser for help on using the repository browser.