23#include "hardware.inc"
38#define my_getpid (int)GetCurrentProcessId()
47#define my_getpid getpid()
68 tmpdir=(
char *)malloc(
sizeof(
char)*2048);
69 sz_tmpdir = GetEnvironmentVariable(
"TMPDIR",tmpdir,2048);
73 fileattr = GetFileAttributesA(tmpdir);
76 if ( fileattr == INVALID_FILE_ATTRIBUTES || !(fileattr & FILE_ATTRIBUTE_DIRECTORY) ){
84 sz_tmpdir = GetCurrentDirectory( 2048,tmpdir);
105 tmpdir = getenv(
"TMPDIR");
108 directory = opendir(tmpdir);
110 if (directory == NULL){
119 tmpdir = (
char *)calloc(200,
sizeof(
char));
141 int slen=strlen(tdir);
144 for (i=0;i<
slen;i++) tmpdir[i]=tdir[i];
191 printf(
"output: %s\n",tmpenv);
subroutine slen(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, j, area, aream)
void tmpenvf__(char *tmpdir, int *tmplen)
void tmpenvf_(char *tmpdir, int *tmplen)
void tmpenvf(char *tmpdir, int *tmplen)
void _FCALL FGETPID(int *pid)
void _FCALL TMPENVF(char *tmpdir, int *tmplen)