diff options
author | pommicket <pommicket@gmail.com> | 2022-02-18 12:36:57 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-02-18 12:36:57 -0500 |
commit | 826d1afd58c2e064a9c8fdb09eda1b08469de1a8 (patch) | |
tree | b4fedc589a1944f6cf3f451a9db976b431e89b25 /05/stdlib.h | |
parent | c42c5d94b8944e19cd17a5b540e4c70013c62b92 (diff) |
newer version of tcc almost working
Diffstat (limited to '05/stdlib.h')
-rw-r--r-- | 05/stdlib.h | 6 |
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) { |