Lines Matching refs:tmpstr
116 char *tmpstr, *tmpstr2; in cam_get_device() local
138 tmpstr = newpath; in cam_get_device()
143 if (*tmpstr == '/') { in cam_get_device()
144 tmpstr2 = tmpstr; in cam_get_device()
145 tmpstr = strrchr(tmpstr2, '/'); in cam_get_device()
147 assert(tmpstr != NULL && *tmpstr != '\0'); in cam_get_device()
148 tmpstr++; in cam_get_device()
151 if (*tmpstr == '\0') { in cam_get_device()
162 if (*tmpstr == 'n' || *tmpstr == 'e') { in cam_get_device()
165 if (strncmp(tmpstr + 1, nonrewind_devs[i], len) == 0) { in cam_get_device()
166 if (isdigit(tmpstr[len + 1])) { in cam_get_device()
167 tmpstr++; in cam_get_device()
179 if (strlen(tmpstr) < 2) { in cam_get_device()
191 if (isdigit(*tmpstr)) { in cam_get_device()
204 if (!isdigit(tmpstr[strlen(tmpstr) - 1])) { in cam_get_device()
222 (unit_offset < (strlen(tmpstr))) in cam_get_device()
223 && (isdigit(tmpstr[strlen(tmpstr) - unit_offset])); unit_offset++); in cam_get_device()
230 *unit = atoi(&tmpstr[strlen(tmpstr) - unit_offset]); in cam_get_device()
236 tmpstr[strlen(tmpstr) - unit_offset] = '\0'; in cam_get_device()
238 strlcpy(dev_name, tmpstr, devnamelen); in cam_get_device()
450 char tmpstr[256]; in cam_lookup_pass() local
459 snprintf(tmpstr, sizeof(tmpstr), in cam_lookup_pass()
467 (errno == ENOENT) ? tmpstr : ""); in cam_lookup_pass()