following program does the display of student details but i want to search for the particular student name from the added list of student. so it would be great any one can help me without using strcmp() function
#include<stdio.h>
#include<string.h>
int main(){
int i,n;
struct school{
int regno;
char name[20];
int class;
}s1[10];
printf("\n enter the no of details of student to be added\n");
scanf("%d",&n);
for(i=0;i<n;i++){
printf("enter the student %d details\n", i);
printf("enter reg no");
scanf("%d",&s1[i].regno);
printf("name ");
scanf("%s",&s1[i].name);
printf("class ");
scanf("%d",&s1[i].class);
}
printf("\n*****RESULT ARE AS FOLLOW*****\n");
printf(" NAME CLASS REG NO \n");
for(i=0;i<n;i++){
printf("%s %d %d ",s1[i].name,s1[i].class,s1[i].regno)
printf("\n");
}
}