8Likes -
1 Post By Click_here -
2 Post By ronin -
3 Post By c99tutorial -
1 Post By c99tutorial -
1 Post By c99tutorial
strcmp
This is a discussion on strcmp within the C Programming forums, part of the General Programming Boards category; Code:
scanf(" %[^\n]s",search);
while(fread(&rlist,sizeof(rlist),1,fp))
{
if(strcmp(search,rlist.surname)==0)
{
printf("\n\n\t\t*** Customer Information Summary ***");
printf("\n\n\n\t\tName : %s, %s",rlist.surname,rlist.fname);
printf("\n\t\tAddress : %s",rlist.address);
printf("\n\t\tContact ...