void tmktempname(const char *path, char *newPath, int newPathLen)
{
char *ptr, *temp;
const char *ptr;
char *temp;
temp = (char *)malloc(strlen(path) + 32);
ptr = strrchr(path, dirSepChar);