We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e6de8 commit c230681Copy full SHA for c230681
docs/tcc-wasm.wasm
-37 Bytes
tcc-wasm.wasm
zig/tcc-wasm.zig
@@ -144,6 +144,10 @@ export fn strlen(s: [*:0]const u8) callconv(.C) usize {
144
return std.mem.len(s);
145
}
146
147
+pub export fn getenv(_: c_int) ?[*]u8 {
148
+ return null;
149
+}
150
+
151
///////////////////////////////////////////////////////////////////////////////
152
/// Fix the Missing Variables
153
pub export var errno: c_int = 0;
@@ -196,9 +200,6 @@ pub export fn fwrite(_: c_int) c_int {
196
200
pub export fn getcwd(_: c_int) c_int {
197
201
@panic("TODO: getcwd");
198
202
199
-pub export fn getenv(_: c_int) c_int {
- @panic("TODO: getenv");
-}
203
pub export fn gettimeofday(_: c_int) c_int {
204
@panic("TODO: gettimeofday");
205
0 commit comments