File:  [CSRG BSD Unix] / 43BSDReno / contrib / mh / sbr / m_find.c
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

/* m_find.c - find an entry in the profile */

#include "../h/mh.h"
#include <stdio.h>


char   *m_find (str)
register char  *str;
{
    register struct node   *np;

    m_getdefs ();
    for (np = m_defs; np; np = np -> n_next)
	if (uleq (np -> n_name, str))
	    return (np -> n_field);

    return NULL;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.