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