compiler/clib: Rename IoErr2errno() to __arosc_ioerr2errno(); function is now defined...
[AROS.git] / compiler / clib / getc.c
blob960f0ec8e669be09b2428606d4cbc7132b2a96b1
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function getc().
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 getc
17 /*****************************************************************************
19 NAME */
20 #include <stdio.h>
22 int getc (
24 /* SYNOPSIS */
25 FILE * stream)
27 /* FUNCTION
28 Read one character from the stream. If there is no character
29 available or an error occurred, the function returns EOF.
31 INPUTS
32 stream - Read from this stream
34 RESULT
35 The character read or EOF on end of file or error.
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
44 fgetc(), fputc(), putc()
46 INTERNALS
48 ******************************************************************************/
50 return fgetc(stream);
51 } /* getc */