search for: my_inittempdir

Displaying 1 result from an estimated 1 matches for "my_inittempdir".

2006 Aug 31
1
Overriding InitTempDir
For embedded projects, one may want to eliminate the per-session temp directory created by InitTempDir() and just use a system-specific temp directory. Here's my solution: extern char *R_TempDir; void my_InitTempDir() { char *tmp; if (R_TempDir){ if (rmdir(R_TempDir) != 0){ perror("Fatal Error: could not remove R's TempDir!"); exit(1); } } tmp = getenv("TMPDIR"); if (tmp == NULL) { tmp = getenv("TMP&quo...