Created
December 31, 2013 10:10
-
-
Save dagon666/8194890 to your computer and use it in GitHub Desktop.
linux tty io for CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unsigned char linux_getc(unsigned char *a_data) { | |
| *a_data = getchar(); | |
| return 1; | |
| } | |
| unsigned char linux_putc(unsigned char *data, unsigned char a_len) { | |
| while (a_len--) { | |
| fputc(*data++, stdout); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment