Lines Matching refs:endp
249 char *startp, *endp, *nstore;
256 startp = endp = temp;
259 if (*endp == PATH_SEPARATOR || *endp == 0)
261 if (endp == startp)
269 strncpy (nstore, startp, endp - startp);
270 if (! IS_DIR_SEPARATOR (endp[-1]))
272 nstore[endp - startp] = DIR_SEPARATOR;
273 nstore[endp - startp + 1] = 0;
276 nstore[endp - startp] = 0;
289 if (*endp == 0)
291 endp = startp = endp + 1;
294 endp++;