2 Copyright © 1995-2001, 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(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 *****************************************************************************/
52 AROS_LIBBASE_EXT_DECL(struct DosLibrary
*,DOSBase
)
56 for (i
= 0; i
< buflen
; i
++)
57 if (FPutC(file
, buf
[i
]) < 0)