00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include <string.h>
00018
00019 #include "tools.h"
00020
00021 int endsWith(char *s, char *t)
00022 {
00023 char *cp;
00024
00025 return (cp = strstr(s, t)) && ! *(cp + strlen(t));
00026 }