Jump to content

Loops/Infinite: Difference between revisions

debug.prints to stderr, but we want to follow other examples that print to stdout.
No edit summary
(debug.prints to stderr, but we want to follow other examples that print to stdout.)
Line 2,260:
<lang Zig>
const std = @import("std");
pub fn main() !void {
 
const stdout_wr = std.io.getStdOut().writer();
pub fn main() void {
while (true) try stdout_wr.writeAll("SPAM\n");
std.debug.print("SPAM\n", .{});
}
</lang>
37

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.