added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / compiler / clib / getc.c
bloba8d4a836f9d62d806b386afe89464fc826d2d096
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function getc().
6 */
8 #include <errno.h>
9 #include <dos/dos.h>
10 #include <dos/dosextens.h>
11 #include <proto/exec.h>
12 #include <proto/dos.h>
13 #include "__errno.h"
14 #include "__open.h"
16 #include <stdio.h>
17 #undef getc
19 /*****************************************************************************
21 NAME */
22 #include <stdio.h>
24 int getc (
26 /* SYNOPSIS */
27 FILE * stream)
29 /* FUNCTION
30 Read one character from the stream. If there is no character
31 available or an error occurred, the function returns EOF.
33 INPUTS
34 stream - Read from this stream
36 RESULT
37 The character read or EOF on end of file or error.
39 NOTES
41 EXAMPLE
43 BUGS
45 SEE ALSO
46 fgetc(), fputc(), putc()
48 INTERNALS
50 ******************************************************************************/
52 return fgetc(stream);
53 } /* getc */