From 34a423c3608b2ec2c852986350152cb6c38ba4be Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Mon, 21 Aug 2023 22:10:31 +0100 Subject: initial --- src/main.zig | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/main.zig (limited to 'src') diff --git a/src/main.zig b/src/main.zig new file mode 100644 index 0000000..e4fab76 --- /dev/null +++ b/src/main.zig @@ -0,0 +1,27 @@ +const std = @import("std"); + +/// Produces an HTML page listing the environment variables. +pub fn main() !void { + const stdout = std.io.getStdOut().writer(); + // + try stdout.writeAll("Content-Type: text/html\r\n"); + try stdout.writeAll("\r\n"); + try stdout.writeAll( + \\ + \\ + \\ + \\

Environment variables passed to CGI script:

+ \\ + \\ + \\ + ); +} -- cgit v1.2.3-ZIG