str_ends_with
static int str_ends_with(const char *s, int slen, const char *sub)
static inline bool str_ends_with(const char *str, const char *substr)