Mercurial > hg > Applications > mh
annotate sbr/m_find.c @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children |
rev | line source |
---|---|
0 | 1 /* m_find.c - find an entry in the profile */ |
2 | |
3 #include "../h/mh.h" | |
4 #include <stdio.h> | |
5 | |
6 | |
7 char *m_find (str) | |
8 register char *str; | |
9 { | |
10 register struct node *np; | |
11 | |
12 m_getdefs (); | |
13 for (np = m_defs; np; np = np -> n_next) | |
14 if (uleq (np -> n_name, str)) | |
15 return (np -> n_field); | |
16 | |
17 return NULL; | |
18 } |