2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
8 #include <exec/memory.h>
9 #include <proto/exec.h>
11 #include <dos/stdio.h>
12 #include <dos/dosextens.h>
14 #include "dos_intern.h"
16 #include <aros/debug.h>
18 /*****************************************************************************
21 #include <proto/dos.h>
26 AROS_LHA(BPTR
, file
, D1
),
27 AROS_LHA(LONG
, character
, D2
),
30 struct DosLibrary
*, DOSBase
, 52, Dos
)
33 Write a character to a file handle.
35 The write is buffered.
37 If the file handle is an interactive stream,
38 the buffer is automatically flushed on a linefeed,
39 carriage return or ASCII NUL.
42 file - Filehandle to write to.
43 character - Character to write.
46 The character written or EOF in case of an error.
47 IoErr() gives additional information in that case.
50 You should use Flush() when switching between
51 buffered and unbuffered IO.
58 FGetC(), IoErr(), Flush(), FWrite()
62 *****************************************************************************/
67 return (1 == FWriteChars(file
, &c
, 1, DOSBase
))