Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main() {
- char input[13];
- char password[13] = "somepassword";
- printf("Enter password: ");
- scanf("%s", input);
- printf("authenticating... ");
- if (strcmp(input, password) == 0) {
- printf("[ok]");
- }
- else {
- printf("[fail]");
- }
- printf("\n");
- }
Add Comment
Please, Sign In to add comment