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

3 lines
48 B
Zig

var s = "socat".*;
std.mem.reverse(u8, s[0..]);