Advertisement
Guest User

Untitled

a guest
Mar 16th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. char username[6] = "admin\0";
  5. char password[6] = "admin\0";
  6.  
  7. void getinput() {
  8. char eingabe[7];
  9. char eingabe2[7];
  10.  
  11. system("cls");
  12. printf("Login\n=====\n\n");
  13. printf("Username: ");
  14. fseek(stdin, 0, SEEK_END);
  15. fgets(eingabe, 7, stdin);
  16. printf("Password: ");
  17. fseek(stdin, 0, SEEK_END);
  18. fgets(eingabe2, 7, stdin);
  19. }
  20.  
  21. void main(){
  22. while (1) {
  23. getinput();
  24. printf("check");
  25. getch();
  26. }
  27.  
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement