We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 679d28b commit 4557249Copy full SHA for 4557249
docs/tcc-wasm.wasm
1.34 KB
tcc-wasm.wasm
zig/tcc-wasm.zig
@@ -98,6 +98,11 @@ export fn close(fd0: c_int) c_int {
98
return 0;
99
}
100
101
+export fn fclose(stream: *FILE) c_int {
102
+ debug("close: stream={*}", .{stream});
103
+ return 0;
104
+}
105
+
106
export fn unlink(path: [*:0]const u8) c_int {
107
debug("unlink: path={s}", .{path});
108
@@ -389,9 +394,6 @@ pub export fn atoi(_: c_int) c_int {
389
394
pub export fn exit(_: c_int) c_int {
390
395
@panic("TODO: exit");
391
396
392
-pub export fn fclose(_: c_int) c_int {
393
- @panic("TODO: fclose");
-}
397
pub export fn fopen(_: c_int) c_int {
398
@panic("TODO: fopen");
399
0 commit comments