Files
2023-03-21 18:23:05 +01:00

27 lines
555 B
C

#define VERSION "0.9"
#include <unistd.h>
#include <sys/types.h>
#include "io.c"
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#define SKIPSPACES(x) for(;*(x)==' '||*(x)=='\t';x++) {};
#if(R0_NOENV)
#define LLF "ll"
#define setenv(x,y,z) //
// static int setenv(char *var, char *val, int force) { return 0; }
#elif(plan9)
static int setenv(char *var, char *val, int force) {
char str[256];
snprintf(str, sizeof(str), "echo %s > /env/%s", var, val);
return system(str);
}
#define LLF "L"
#else
#define LLF "ll"
#endif