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