#How to get the length of a sentinel terminated array?

1 messages · Page 1 of 1 (latest)

charred lark
#

I believe std.mem.span(&array).len works?

pulsar idol
#

Actually, I think I missunderstood the whole concept of sentinel termination. The array is just the same size as the one given and the sentinel is just appended in memory at the end.