def cstr
import bend-kit-tar@0.3.0.0/tar.bend as Tarimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
68# The count of bytes before the first NUL in the w bytes from j.
69def cstr(a: Array<U32>, +j: U32, +w: U32) -> Array<U32> & U32:
70 cstr.go(U32.to_nat(w), Bytes.peek(a, j), j, 0, False{})