diff sbr/m_find.c @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbr/m_find.c	Mon Apr 18 23:46:02 2005 +0900
@@ -0,0 +1,18 @@
+/* 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;
+}