Skip to content

Instantly share code, notes, and snippets.

@haze

haze/c.zig Secret

Created January 22, 2020 00:05
Show Gist options
  • Save haze/02974e52ea312d6e9c33efa1251510c4 to your computer and use it in GitHub Desktop.
Save haze/02974e52ea312d6e9c33efa1251510c4 to your computer and use it in GitHub Desktop.
(no description)
const std = @import("std");
pub fn main() !void {
comptime var buf: [2 << 8]u8 = undefined;
std.mem.secureZero(u8, &buf);
comptime var allocator = std.heap.FixedBufferAllocator.init(&buf).allocator;
comptime var hm = std.StringHashMap(i32).init(&allocator);
_ = try hm.putNoClobber("bruh", 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment