diff options
Diffstat (limited to 'src/lib/libc/stdlib.c')
-rw-r--r-- | src/lib/libc/stdlib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/libc/stdlib.c b/src/lib/libc/stdlib.c index bc543be..6b200c2 100644 --- a/src/lib/libc/stdlib.c +++ b/src/lib/libc/stdlib.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <ctype.h> +#include <string.h> #include <kogata/debug.h> @@ -75,6 +76,10 @@ double strtod(const char *nptr, char **endptr) { } char *getenv(const char *name) { + // HACK + if (!strcmp(name, "LUA_INIT")) { + return "require 'init'"; + } // TODO return 0; } |