Lines Matching refs:paths
149 const char* paths = getenv("PATH");
150 if (paths == NULL) {
157 // iterate through the paths
158 const char* pathEnd = paths - 1;
160 paths = pathEnd + 1;
161 pathEnd = strchr(paths, ':');
162 int pathLen = (pathEnd ? pathEnd - paths : strlen(paths));
164 // We skip empty paths and those that would become too long.
173 memcpy(path, paths, pathLen);