Lines Matching refs:cwd
322 char* cwd = get_current_dir_name();324 static char path[PATH_MAX+2], cwd[PATH_MAX+2];335 if (NULL == cwd) {338 if (NULL == getcwd(cwd,PATH_MAX)) {344 cwd = realloc(cwd, strlen(cwd)+2);345 if (cwd == NULL) {350 if (!*cwd || cwd[strlen(cwd)-1] != '/')351 strcat(cwd,"/");373 strcpy(path,cwd);