for(i=0;i<row;i++){ if(strcmp(user.userName,userNames[i]) == 0 ){ userType=2; break; } } } if(userType==1||userType==2){ res = validatePassword(user.password); } printf("%d",userType); printf("\n%d",res); } int validatePassword(char passwd[]){ return 1; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)