Lines Matching defs:pcwd
63 unsigned char *pcwd;
114 pcwd = cwdname;
115 *pcwd++ = *dir++;
125 pcwd = cwdname + length(cwdname) - 1;
126 if(pcwd != cwdname+1)
127 *pcwd++ = SLASH;
137 if( pcwd > cwdname+2 )
138 --pcwd;
139 while(*(--pcwd) != SLASH)
141 pcwd++;
149 if (pcwd >= &cwdname[PATH_MAX+1])
154 *pcwd++ = *dir++;
157 if (pcwd >= &cwdname[PATH_MAX+1])
162 *pcwd++ = *dir++;
166 if (pcwd >= &cwdname[PATH_MAX+1])
171 *pcwd++ = *dir++;
174 if (pcwd >= &cwdname[PATH_MAX+1])
179 *pcwd = NULL;
181 --pcwd;
182 if(pcwd>cwdname && *pcwd==SLASH)
186 *pcwd = NULL;
195 unsigned char *pcwd;
200 pcwd = cwdname + 1;
202 while (*pcwd)
205 while((c = *pcwd++) != SLASH && c != '\0');
206 *--pcwd = '\0';
210 *pcwd = c;
213 *pcwd = c;
215 pcwd++;