![]() |
![]()
| ![]() |
![]()
NAMEnamefind - hash table for strings See the file man1/alc_origin.1. SYNOPSIS#include "mut.h" char ∗namefind(inputname) char ∗inputname; PARAMETER
DESCRIPTIONThe namefind function search the mbk dictionary of names.
If the string has already been inserted in the dictionary, then a pointer to
this string is return, else namefind returns NULL.
RETURN VALUEnamefind returns a string pointer if the inputname is already in the hash table, else NULL. EXAMPLE#include "mut.h" #include "mlo.h" lofig_list ∗find_fig(name) char ∗name; { lofig_list ∗p; name = namefind(name); if (name == NULL) return NULL; for (p = HEAD_LOFIG; p; p = p->NEXT) if (p->NAME == name) /∗ pointer equality ∗/ return p; return NULL; } DIAGNOSTICSnamefind can be used only after a call to mbkenv(3). SEE ALSOmbk(1) namealloc(3). See the file man1/alc_bug_report.1.
|