Lines Matching defs:end
113 char *end = strchr(p, PATH_SEP_CHAR);
114 if (!end)
115 end = strchr(p, '\0');
116 int need_slash = end > p && strchr(DIR_SEPS, end[-1]) == 0;
117 char *origpath = new char[(end - p) + need_slash + namelen + 1];
118 memcpy(origpath, p, end - p);
120 origpath[end - p] = '/';
121 strcpy(origpath + (end - p) + need_slash, name);
139 if (*end == '\0')
141 p = end + 1;
170 char *end = strchr(p, PATH_SEP_CHAR);
171 if (!end)
172 end = strchr(p, '\0');
173 int need_slash = end > p && strchr(DIR_SEPS, end[-1]) == 0;
174 char *origpath = new char[(end - p) + need_slash + namelen + 1];
175 memcpy(origpath, p, end - p);
177 origpath[end - p] = '/';
178 strcpy(origpath + (end - p) + need_slash, name);
202 if (*end == '\0')
204 p = end + 1;