TPCTL_TMP_FILENAME
strcpy(tempfile, TPCTL_TMP_FILENAME);
p - tempfile + strlen(TPCTL_TMP_FILENAME))
strcat(tempfile, TPCTL_TMP_FILENAME);