ref: d6284861a168133c0e72078cb4770796d4fb855d
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
;;
}