ref: e6b1b42af6803c74ad53cc53d553462c51e36103
dir: /libstd/hassuffix.myr/
use "cmp.use"
pkg std =
const hassuffix : (s : byte[:], suff : byte[:] -> bool)
;;
const hassuffix = {s, suff
var tail
if suff.len >= s.len
tail = s[s.len - suff.len:]
match strncmp(tail, suff, suff.len)
| `Equal: -> true
| _: -> false
;;
;;
}