Advertisement
Guest User

Untitled

a guest
Mar 16th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include "stdio.h"
  2. #include "kernel/keyboard.h"
  3.  
  4. char character;
  5.  
  6. char getch() {
  7. while (character == 0) {
  8. return character;
  9. }
  10. }
  11.  
  12. When i try to:
  13. char a = getch();
  14. printf(a);
  15.  
  16. it just says "S"
  17. that's all it prints out what the problem?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement