From 826d1afd58c2e064a9c8fdb09eda1b08469de1a8 Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 18 Feb 2022 12:36:57 -0500 Subject: newer version of tcc almost working --- 05/stdlib.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '05/stdlib.h') diff --git a/05/stdlib.h b/05/stdlib.h index c2f83eb..b93d4aa 100644 --- a/05/stdlib.h +++ b/05/stdlib.h @@ -18,6 +18,12 @@ typedef struct { long rem; } ldiv_t; + +int execvp(const char *pathname, char *const argv[]) { + return execve(pathname, argv, _envp); +} + + char *getenv(const char *name) { int i, j; for (i = 0; _envp[i]; ++i) { -- cgit v1.2.3