2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <dos/dosextens.h>
10 #include "dos_intern.h"
12 #include <aros/debug.h>
15 /*****************************************************************************
18 #include <proto/dos.h>
21 /* FPuts -- Writes a string to the specified output (buffered) */
24 AROS_LHA(BPTR
, file
, D1
),
25 AROS_LHA(CONST_STRPTR
, string
, D2
),
29 struct DosLibrary
*, DOSBase
, 57, Dos
)
32 This routine writes an unformatted string to the filehandle. No
33 newline is appended to the string. This routine is buffered.
36 file - Filehandle to write to.
37 string - String to write.
40 0 if all went well or EOF in case of an error.
41 IoErr() gives additional information in that case.
46 *****************************************************************************/
51 SetIoErr(ERROR_OBJECT_NOT_FOUND
);
55 ASSERT_VALID_PTR(BADDR(file
));
56 ASSERT_VALID_PTR(string
);
58 ULONG len
= strlen(string
);
60 return(FWriteChars(file
, string
, len
, DOSBase
) == len