Lines Matching defs:pt
40 char *pt, *last;
44 for (pt = file; *pt; /* void */) {
45 if (isdot(pt))
46 (void) strcpy(pt, pt[1] ? pt+2 : pt+1);
47 else if (isdotdot(pt)) {
49 last = pt;
56 --pt; /* point to previous '/' */
58 if (pt <= file)
60 while ((*--pt != '/') && (pt > file))
63 if (*pt == '/')
64 pt++;
65 (void) strcpy(pt, last);
67 while (*pt && (*pt != '/'))
68 pt++;
69 if (*pt == '/') {
70 while (pt[1] == '/')
71 (void) strcpy(pt, pt+1);
72 pt++;
76 if ((--pt > file) && (*pt == '/'))
77 *pt = '\0';
83 char *pt;
86 for (pt = file; *pt; /* void */) {
87 while (*pt && (*pt != '/'))
88 pt++;
89 if (*pt == '/') {
90 while (pt[1] == '/')
91 (void) strcpy(pt, pt+1);
92 pt++;
95 if ((--pt > file) && (*pt == '/'))
96 *pt = '\0';