RosettaCodeData/Task/Reverse-a-string/Zig/reverse-a-string-1.zig

3 lines
44 B
Zig

var s = "socat".*;
std.mem.reverse(u8, &s);