Strings In Depth11 / 19
Up next

Uppercase ASCII

const std = @import("std");

pub fn main() void {
    var buf: [5]u8 = undefined;
    // upperString writes the transformed bytes into buf
    const up = std.ascii.upperString(&buf, "hello");
    std.debug.print("{s}\n", .{up});
}
What you're solving

std.ascii.upperString into a buffer