Lines Matching refs:slash
86 /* Return a pointer to the first non-slash in S. */
140 /* Find next slash.
141 We already know that dir[2] is neither a slash nor '\0'. */
142 char *slash = memchr (dir + 3, '/', dir_end - (dir + 3));
143 if (slash == NULL)
148 *slash = '\0';
150 *slash = '/';
153 dir = find_non_slash (slash + 1);
168 /* Find a slash that is PATH_MAX or fewer bytes away from dir.
169 I.e. see if there is a slash that will give us a name of
171 char *slash = memrchr (dir, '/', PATH_MAX);
172 if (slash == NULL)
178 *slash = '\0';
179 assure (slash - dir < PATH_MAX);
181 *slash = '/';
185 dir = find_non_slash (slash + 1);