2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
5 Desc: Writes a buffer to the current output.
8 #include <proto/exec.h>
9 #include <dos/dosextens.h>
10 #include "dos_intern.h"
12 /*****************************************************************************
15 #include <proto/dos.h>
17 AROS_LH2(LONG
, WriteChars
,
20 AROS_LHA(CONST_STRPTR
, buf
, D1
),
21 AROS_LHA(ULONG
, buflen
, D2
),
24 struct DosLibrary
*, DOSBase
, 157, Dos
)
27 Writes the contents of the buffer to the current output stream.
28 The number of bytes written is returned.
31 buf - Buffer to be written.
32 buflen - Size of the buffer in bytes.
35 The number of bytes written or EOF on failure. IoErr() gives
36 additional information in that case.
45 FPuts(), FPutC(), FWrite(), PutStr()
49 *****************************************************************************/
55 for (i
= 0; i
< buflen
; i
++)
56 if (FPutC(file
, buf
[i
]) < 0)