2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
9 #include <aros/debug.h>
10 #include <exec/memory.h>
11 #include <proto/exec.h>
13 #include <dos/stdio.h>
14 #include <dos/dosextens.h>
16 #include "dos_intern.h"
19 /*****************************************************************************
22 #include <proto/dos.h>
27 AROS_LHA(BPTR
, file
, D1
),
30 struct DosLibrary
*, DOSBase
, 51, Dos
)
33 Get a character from a buffered file. Buffered I/O is more efficient
34 for small amounts of data but less for big chunks. You have to
35 use Flush() between buffered and non-buffered I/O or you'll
36 clutter your I/O stream.
42 The character read or EOF if the file ended or an error happened.
43 IoErr() gives additional information in that case.
56 *****************************************************************************/
63 res
= vbuf_fetch(file
, &c
, 1, DOSBase
);