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