コード例 #1
0
ファイル: 5-4.c プロジェクト: unais/KNR
main()
{
	char s1[20] = "Hello World", s2[20] = "World";
	
	if(strend1(s1,s2))
		printf("OK\n");
	else
		printf("No\n");
	
}
コード例 #2
0
ファイル: ex5-4.c プロジェクト: SeraYang/c
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));
}
コード例 #3
0
ファイル: ch4_string.c プロジェクト: badcodes/c
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;
}
コード例 #4
0
ファイル: TCP5_4.c プロジェクト: Rongpeng/C_CPP
int main(){
	char s[100] = "abc1d";
	char t[100] = "cd";
	printf("%d\n",strend1(s,t));
	return 0;
}