summaryrefslogtreecommitdiff
path: root/05/stdlib.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-02-18 12:36:57 -0500
committerpommicket <pommicket@gmail.com>2022-02-18 12:36:57 -0500
commit826d1afd58c2e064a9c8fdb09eda1b08469de1a8 (patch)
treeb4fedc589a1944f6cf3f451a9db976b431e89b25 /05/stdlib.h
parentc42c5d94b8944e19cd17a5b540e4c70013c62b92 (diff)
newer version of tcc almost working
Diffstat (limited to '05/stdlib.h')
-rw-r--r--05/stdlib.h6
1 files changed, 6 insertions, 0 deletions
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) {