make armeb specific header (set AROS_BIG_ENDIAN to one)
[AROS.git] / compiler / stdc / getchar.c
blob8b140ad0ac6132fb85002928b1c073c8acd14229
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function getchar().
6 */
7 #include <libraries/stdcio.h>
9 #define _STDIO_H_NOMACRO
11 /*****************************************************************************
13 NAME */
14 #include <stdio.h>
16 int getchar (void)
18 /* SYNOPSIS */
20 /* FUNCTION
21 Read one character from the standard input stream. If there
22 is no character available or an error occurred, the function
23 returns EOF.
25 INPUTS
27 RESULT
28 The character read or EOF on end of file or error.
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
37 fgetc(), getc(), fputc(), putc()
39 INTERNALS
41 ******************************************************************************/
43 struct StdCIOBase *StdCIOBase = __aros_getbase_StdCIOBase();
45 return fgetc(StdCIOBase->_stdin);
46 } /* getc */