Professional Documents
Culture Documents
Login
Login
h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
scanf("%s", filename);
printf("Username: ");
scanf("%s", username);
printf("\nFile error!\nAborting...\n");
} else {
while (!feof(infile)) {
buf[0] = '\0';
if(strlen(buf) == 0) continue;
user_file = buf;
pass_file[0] = '\0';
pass_file++;
printf("Correct password...\n");
} else {
printf("Invalid password!\n\n");
} /* End if */
break;
} /* End if */
} /* End while */
} /* End if */
fclose(infile);
} /* End main() */