Lines Matching refs:hp
214 struct hent *hp;
230 hp = lookup(cp);
231 if (hp == NULL) {
234 hp = enter(cp);
236 hp->h_feetpages += t;
238 hp->h_count += ic;
240 hp->h_count++;
252 struct hent *hp, **ap;
256 hp = hashtab[0];
258 base = calloc(sizeof hp, hcount);
262 while (hp == NULL)
263 hp = hashtab[hno++];
264 *ap = hp;
265 hp = hp->h_link;
267 qsort(base, hcount, sizeof hp, qucmp);
274 hp = *ap;
275 runs += hp->h_count;
276 feet += hp->h_feetpages;
278 hp->h_feetpages, hp->h_count,
279 hp->h_feetpages * price * hp->h_count,
280 hp->h_name);
296 struct hent *hp;
306 hp = hashtab[i];
307 while (hp != NULL) {
308 fprintf(acf, "%7.2f\t%s\t%d\n", hp->h_feetpages,
309 hp->h_name, hp->h_count);
310 hp = hp->h_link;
336 struct hent *hp;
339 if ((hp = lookup(name)) != NULL)
340 return(hp);
343 hp = (struct hent *) calloc(sizeof *hp, 1);
344 if (hp == NULL)
346 hp->h_name = strdup(name);
347 if (hp->h_name == NULL)
349 hp->h_feetpages = 0.0;
350 hp->h_count = 0;
351 hp->h_link = hashtab[h];
352 hashtab[h] = hp;
353 return(hp);
365 struct hent *hp;
368 for (hp = hashtab[h]; hp != NULL; hp = hp->h_link)
369 if (strcmp(hp->h_name, name) == 0)
370 return(hp);