revert between 56095 -> 55830 in arch
[AROS.git] / rom / dos / putstr.c
blob2b5cb2d12d9a55f266321242c284bb13cb9d4ccb
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Lang: english
6 */
7 #include <aros/debug.h>
9 #include <proto/exec.h>
10 #include <dos/dosextens.h>
12 #include "dos_intern.h"
14 /*****************************************************************************
16 NAME */
17 #include <proto/dos.h>
19 AROS_LH1(LONG, PutStr,
21 /* SYNOPSIS */
22 AROS_LHA(CONST_STRPTR, string, D1),
24 /* LOCATION */
25 struct DosLibrary *, DOSBase, 158, Dos)
27 /* FUNCTION
28 This routine writes an unformatted string to the default output. No
29 newline is appended to the string and any error is returned. This
30 routine is buffered.
32 INPUTS
33 str - Null-terminated string to be written to default output
35 RESULT
36 error - 0 for success, -1 for any error.
38 SEE ALSO
39 FGetC(), IoErr()
41 *****************************************************************************/
43 AROS_LIBFUNC_INIT
45 struct Process *me = (struct Process *)FindTask(NULL);
46 BPTR file;
48 ASSERT_VALID_PROCESS(me);
50 file = me->pr_COS;
52 return(FPuts(file, string));
54 AROS_LIBFUNC_EXIT
55 } /* PutStr */