Lines Matching defs:ptr
170 char *ptr;
196 if ((ptr = strchr(line, '#')) != NULL)
197 *ptr = '\0'; /* handle comments */
226 mode = strtol(mode_str, &ptr, 8);
227 if (mode < 0 || mode > 0777 || *ptr != '\0') {
277 char *ptr;
298 if (is_minor_node((const char *)contents, (const char **)&ptr) !=
305 if ((ptr = strrchr(devpath, '/')) == NULL) {
309 *ptr = '\0';
311 *ptr = '/';
320 *devfs_path = strdup(ptr);