2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 C99 function getchar().
9 #include <dos/dosextens.h>
10 #include <proto/exec.h>
11 #include <proto/dos.h>
14 #include "__posixc_intbase.h"
16 #define _STDIO_H_NOMACRO
19 /*****************************************************************************
29 Read one character from the standard input stream. If there
30 is no character available or an error occurred, the function
36 The character read or EOF on end of file or error.
45 fgetc(), getc(), fputc(), putc()
49 ******************************************************************************/
51 struct PosixCBase
*PosixCBase
=
52 (struct PosixCBase
*)__aros_getbase_PosixCBase();
54 return fgetc(PosixCBase
->_stdin
);