Lines Matching refs:copy
468 char *copy; in lookupunit() local
476 copy = dupstr(unit); in lookupunit()
477 copy[strlen(copy) - 1] = 0; in lookupunit()
479 if (!strcmp(unittable[i].uname, copy)) { in lookupunit()
480 strlcpy(buffer, copy, sizeof(buffer)); in lookupunit()
481 free(copy); in lookupunit()
485 free(copy); in lookupunit()
488 copy = dupstr(unit); in lookupunit()
489 copy[strlen(copy) - 1] = 0; in lookupunit()
491 if (!strcmp(unittable[i].uname, copy)) { in lookupunit()
492 strlcpy(buffer, copy, sizeof(buffer)); in lookupunit()
493 free(copy); in lookupunit()
497 if (copy[strlen(copy) - 1] == 'e') { in lookupunit()
498 copy[strlen(copy) - 1] = 0; in lookupunit()
500 if (!strcmp(unittable[i].uname, copy)) { in lookupunit()
501 strlcpy(buffer, copy, sizeof(buffer)); in lookupunit()
502 free(copy); in lookupunit()
507 free(copy); in lookupunit()