Zig Bare Bones: Difference between revisions

Jump to navigation Jump to search
m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
m (Bot: Replace deprecated source tag with syntaxhighlight)
m (Bot: Replace deprecated source tag with syntaxhighlight)
Line 97:
 
=== src/main.zig ===
<sourcesyntaxhighlight lang="c">
const console = @import("console.zig");
 
Line 129:
console.puts("Hello world!");
}
</syntaxhighlight>
</source>
 
=== src/console.zig ===
<sourcesyntaxhighlight lang="c">
const fmt = @import("std").fmt;
const Writer = @import("std").io.Writer;
Line 217:
fmt.format(writer, format, args) catch unreachable;
}
</syntaxhighlight>
</source>
 
=== src/linker.ld ===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu