Lines Matching defs:ptr
489 char inq_path[MAXNAMELEN], *ptr = NULL;
519 argv[0] ? argv[0] : "<null ptr>");
542 if (((ptr = strstr(inq_path, ",")) != NULL) &&
543 ((*(ptr + 1) == 'f') || (*(ptr + 1) == 'r') ||
544 (*(ptr +1) == 's')) &&
552 *ptr = NULL;
1264 char *ptr;
1402 ptr = strrchr(bus_path, '/');
1403 if (ptr) {
1404 *ptr = '\0';
2532 char lname[MAXPATHLEN], *ptr;
2567 ptr = strrchr(path, ':');
2568 if (ptr)
2569 *ptr = '\0';
2657 char *lpath, *ptr, *buf_ptr, buf[MAXNAMELEN], dev[MAXNAMELEN];
2667 if ((ptr = strrchr(lpath, 'c')) == NULL)
2669 (void) strcpy(buf, ptr);
2670 if ((ptr = strrchr(buf, 's')) == NULL)
2672 *(++ptr) = NULL;
2688 if ((ptr = strrchr(lpath, '/')) == NULL)
2694 ptr++;
2695 buf_ptr = ptr;
2696 while (*ptr >= '0' && *ptr <= '9')
2697 ptr++;
2698 *ptr = NULL;
2699 for (i = 0, ptr = tape_entries[0];
2700 ptr != NULL;
2701 i++, ptr = tape_entries[i]) {
2702 (void) sprintf(dev, "%s%s", buf_ptr, ptr);