compiler/clib: Rename IoErr2errno() to __arosc_ioerr2errno(); function is now defined...
[AROS.git] / compiler / clib / getchar.c
blob8d893004406ecf8a981824b2829bbc121623d6cb
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C 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 <stdio.h>
15 #undef getchar
17 /*****************************************************************************
19 NAME */
20 #include <stdio.h>
22 int getchar (void)
24 /* SYNOPSIS */
26 /* FUNCTION
27 Read one character from the standard input stream. If there
28 is no character available or an error occurred, the function
29 returns EOF.
31 INPUTS
33 RESULT
34 The character read or EOF on end of file or error.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 fgetc(), getc(), fputc(), putc()
45 INTERNALS
47 ******************************************************************************/
49 return getc(stdin);
50 } /* getc */