main() { char s1[20] = "Hello World", s2[20] = "World"; if(strend1(s1,s2)) printf("OK\n"); else printf("No\n"); }
main(){ int i = 0; char *t = "yangyifan"; char *s = "\0"; //for(i = 0;t[i] != '\0';i++){ // printf("%c \n",t[i]); //} printf("%d \n",strend1(t,s)); }
int ch4_string() { char *test=malloc(256); debugStr(utoa1(1132,test)); char *test2="abcdefg"; debugInt((int)strlen1(test2)); debugStr(strcat1(test,test2)); debugStr(strcpy1(test,test2)); debugInt(strend1(test,"g")); debugInt(strcmp1("1","2")); debugStr(strncpy1(test,"affgdtwsysgfdgfddsfad",2)); debugStr(strncat1(test,"ABCDEFG",4)); debugInt(strncmp1("12","12223",4)); system("PAUSE"); return 0; }
int main(){ char s[100] = "abc1d"; char t[100] = "cd"; printf("%d\n",strend1(s,t)); return 0; }