ref: f75f5261a8eed99784bab6274d31dbd00d6d3f76
dir: /lib/std/hasprefix.myr/
use "cmp.use"
pkg std =
const hasprefix : (s : byte[:], pre : byte[:] -> bool)
;;
const hasprefix = {s, pre
match strncmp(s, pre, pre.len)
| `Equal: -> true
| _: -> false
;;
}