Lines Matching refs:endp
242 char *startp, *endp, *nstore;
249 startp = endp = temp;
252 if (*endp == PATH_SEPARATOR || *endp == 0)
254 if (endp == startp)
262 strncpy (nstore, startp, endp - startp);
263 if (! IS_DIR_SEPARATOR (endp[-1]))
265 nstore[endp - startp] = DIR_SEPARATOR;
266 nstore[endp - startp + 1] = 0;
269 nstore[endp - startp] = 0;
282 if (*endp == 0)
284 endp = startp = endp + 1;
287 endp++;