Subversion Repositories Kolibri OS

Rev

Rev 8687 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8687 Rev 8730
Line 1... Line 1...
1
#include 
1
#include 
2
#include "conio.h"
2
#include "conio.h"
Line 3... Line 3...
3
 
3
 
-
 
4
int getchar(void) {
-
 
5
	__con_init();
4
int getchar(void) {
6
	char c = 0;
5
	int c = __con_getch();
7
	__con_gets(&c, 2);
6
	if (c == 0) {
8
	if (c == 0) {
7
		c = EOF;
9
		c = EOF;
8
	}
10
	}
9
	return c;
11
	return c;