ref: 260efa662329b449683813b6662d79e1df932b66 dir: /libstd/cstrconv.myr/
pkg std = const cstrconv : (buf : byte[:] -> byte[:]) ;; const cstrconv = {buf var i for i = 0; i < buf.len; i++ if buf[i] == 0 -> buf[:i] ;; ;; -> buf }