Lines Matching refs:name
13 * 4. Neither the name of the University nor the names of its contributors
51 assign(const char *name, const char *value)
56 h = hash(name);
57 vp = lookup(name);
61 vp->v_name = vcopy(name);
108 value(const char *name)
112 if ((vp = lookup(name)) == NULL)
113 return (getenv(name));
123 lookup(const char *name)
127 for (vp = variables[hash(name)]; vp != NULL; vp = vp->v_link)
128 if (*vp->v_name == *name && equal(vp->v_name, name))
134 * Locate a group name and return it.
138 findgroup(char name[])
142 for (gh = groups[hash(name)]; gh != NULL; gh = gh->g_link)
143 if (*gh->g_name == *name && equal(gh->g_name, name))
152 printgroup(char name[])
157 if ((gh = findgroup(name)) == NULL) {
158 printf("\"%s\": not a group\n", name);
172 hash(const char *name)
176 while (*name != '\0') {
178 h += *name++;