Lines Matching refs:path
65 #define GETCWD(path, len) GetCurrentDirectoryA(len, path)
66 #define CHDIR(path) SetCurrentDirectoryA(path)
71 #define GETCWD(path, len) getcwd(path, len)
72 #define CHDIR(path) chdir(path)
122 int check_path(char *path, size_t size);
159 printf(" targetdir: relative or absolute path to files to convert" NEWLINE);
181 char path[MAX_PATH_LEN];
190 memset(path, 0, sizeof(path));
199 strcpy(path, "fs");
265 strncpy(path, argv[i], sizeof(path) - 1);
266 path[sizeof(path) - 1] = 0;
270 if (!check_path(path, sizeof(path))) {
271 printf("Invalid path: \"%s\"." NEWLINE, path);
277 if (!CHDIR_SUCCEEDED(CHDIR(path))) {
279 printf(" Failed to open directory \"%s\"." NEWLINE NEWLINE, path);
290 printf(" Processing all files in directory %s", path);
309 CHDIR(path);
381 int check_path(char *path, size_t size)
384 if (path[0] == 0) {
388 slen = strlen(path);
393 while ((slen > 0) && ((path[slen] == '\\') || (path[slen] == '/'))) {
394 /* path should not end with trailing backslash */
395 path[slen] = 0;
481 printf("WARNING: cannot process sub due to path length restrictions: \"%s/%s\"\n", curSubdir, currName);
841 /* build up the relative path to this file */