Lines Matching defs:newpath
1482 char *newpath = NULL;
1558 newpath = (char *)MemAlloc(strlen("PATH=") + (bundledlibpath ? strlen(bundledlibpath) + 1 : 0) + (oldpath ? strlen(oldpath) + 1 : 0) + 10);
1559 strcpy(newpath, "PATH=");
1562 strcat(newpath, bundledlibpath);
1563 strcat(newpath, "\\bin");
1564 strcat(newpath, PATH_SEPARATOR);
1568 strcat(newpath, oldpath);
1569 strcat(newpath, PATH_SEPARATOR);
1571 if (newpath[strlen(newpath) - 1] == PATH_SEPARATOR_CHAR)
1572 newpath[strlen(newpath) - 1] = '\0';
1573 putenv(newpath);
1574 free(newpath);
1575 newpath = NULL;
1644 char *newpath = NULL;
1645 if ((newpath = (char *)malloc(strlen(path) + 1)) != NULL)
1647 strcpy(newpath, path);
1648 *strrchr(newpath, FILE_SEPARATOR_CHAR) = '\0';
1649 DeleteFilesAndDirectories(newpath, savelist);
1650 free(newpath);
1651 newpath = NULL;