shithub: mc

ref: 02f19e5b2e6a94199d6eb9a97417e1feb3b2d0aa
dir: /libstd/cstrconv.myr/

View raw version
pkg std =
	const cstrconv	: (buf : byte[:] -> byte[:])
;;

const cstrconv = {buf
	for i = 0; i < buf.len; i++
		if buf[i] == 0
			break
		;;
	;;
	-> buf[:i]
}