跳转到内容

endswith

int  endswith(string haystack, string needle)

如果字符串以给定字符串结尾则返回1,否则返回0。