|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T g
Length: 727 (0x2d7)
Types: TextFile
Names: »groupmap.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
└─⟦this⟧ »EUUGD11/euug-87hel/sec8/mcp/src/groupmap.c«
#include "sysdep.h"
#include "macros.h"
#include "mem.h"
#include "lists.h"
#include "groupmap.h"
extern struct list GroupMapList;
extern int igmapcmp();
struct groupmap *
getgmnam(name)
char *name;
{
register int index;
struct groupmap *g;
if (!groupexists(name))
return (struct groupmap *) 0;
for (index=0; index < GroupMapList.l_count; index++) {
g = (struct groupmap *) GroupMapList.l_list[index];
if (eq(g->gm_name, name))
return g;
}
return (struct groupmap *) 0;
}
struct groupmap *
getgmgid(gid)
int gid;
{
int index, found;
index = search_list(&GroupMapList, (char *)&gid, igmapcmp, &found);
if (found)
return (struct groupmap *) GroupMapList.l_list[index];
return (struct groupmap *) 0;
}