2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <dos/dosextens.h>
9 #include <proto/exec.h>
10 #include <proto/dos.h>
15 /*****************************************************************************
27 Puch the character c character back into the stream.
30 c - Put this character back into the stream. The next read will
31 return this character. If you push back more than one
32 character, then they will be returned in reverse order.
33 The function gurantees that one character can be
34 pushed back but no more. It is possible to push the EOF
35 character back into the stream.
36 stream - Read from this stream
48 fgetc(), getc(), fputc(), putc()
52 ******************************************************************************/
54 /* Note: changes here might require changes in vfscanf.c!! */
59 if (!UnGetC (stream
->fh
, c
))
65 errno
= __stdc_ioerr2errno(ioerr
);
66 stream
->flags
|= __STDCIO_STDIO_ERROR
;
69 stream
->flags
|= __STDCIO_STDIO_EOF
;