How can I write a Zig function that can accept and return strings?
I am very new to Zig (working through Advent Of Code in it), and I am very confused by its handling of strings (or, I should say, []u8
s) as function arguments and return types.
How can I write a Zig function that can accept and return strings?
I am very new to Zig (working through Advent Of Code in it), and I am very confused by its handling of strings (or, I should say, []u8
s) as function arguments and return types.