Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- char username[6] = "admin\0";
- char password[6] = "admin\0";
- void getinput() {
- char eingabe[7];
- char eingabe2[7];
- system("cls");
- printf("Login\n=====\n\n");
- printf("Username: ");
- fseek(stdin, 0, SEEK_END);
- fgets(eingabe, 7, stdin);
- printf("Password: ");
- fseek(stdin, 0, SEEK_END);
- fgets(eingabe2, 7, stdin);
- }
- void main(){
- while (1) {
- getinput();
- printf("check");
- getch();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement