Initial commit

This commit is contained in:
2022-08-19 15:22:33 +02:00
commit d682fae506
545 changed files with 48172 additions and 0 deletions

16
unix/myc_tmp.h Executable file
View File

@@ -0,0 +1,16 @@
int MycTmpName(char *result, const char *name, int reslen);
/* generate a temporary filename containing 'name'.
* the filename is stored in 'result' with less than 'reslen' characters.
*/
int MycCleanTmp(void);
/* deletes temporary files from closed sessions. files not beginning with a
* dot will be kept at least for 7 days (if the system does not delete then)
*/
#ifdef __CYGWIN__
#define TEMP_PATH getenv("TEMP")
#else
#define TEMP_PATH "/tmp"
#endif