shithub: mc

ref: fc7a74ca128331bed45b986d828a317071dc5cde
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]
}