muimaster.library: support Listview_List in List
[AROS.git] / compiler / posixc / getchar.c
blobea9a77d76cfcaebf9fc6277de391233d7ce4734e
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function getchar().
6 */
8 #include <dos/dos.h>
9 #include <dos/dosextens.h>
10 #include <proto/exec.h>
11 #include <proto/dos.h>
12 #include "__fdesc.h"
14 #include "__posixc_intbase.h"
16 #define _STDIO_H_NOMACRO
17 #include <stdio.h>
19 /*****************************************************************************
21 NAME */
22 #include <stdio.h>
24 int getchar (void)
26 /* SYNOPSIS */
28 /* FUNCTION
29 Read one character from the standard input stream. If there
30 is no character available or an error occurred, the function
31 returns EOF.
33 INPUTS
35 RESULT
36 The character read or EOF on end of file or error.
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
45 fgetc(), getc(), fputc(), putc()
47 INTERNALS
49 ******************************************************************************/
51 struct PosixCBase *PosixCBase =
52 (struct PosixCBase *)__aros_getbase_PosixCBase();
54 return fgetc(PosixCBase->_stdin);
55 } /* getc */