emul-handler: fh_Arg1 should be the only element of struct FileHandle touched during...
[AROS.git] / rom / dos / putstr.c
blob0ab27c8af25a2b9fa284ffe7c411d8108e364096
1 /*
2 Copyright © 1995-2007, 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 */
26 struct DosLibrary *, DOSBase, 158, Dos)
28 /* FUNCTION
29 This routine writes an unformatted string to the default output. No
30 newline is appended to the string and any error is returned. This
31 routine is buffered.
33 INPUTS
34 str - Null-terminated string to be written to default output
36 RESULT
37 error - 0 for success, -1 for any error.
39 SEE ALSO
40 FGetC(), IoErr()
42 *****************************************************************************/
44 AROS_LIBFUNC_INIT
46 struct Process *me = (struct Process *)FindTask(NULL);
47 BPTR file;
49 ASSERT_VALID_PROCESS(me);
51 file = me->pr_COS;
53 return(FPuts(file, string));
55 AROS_LIBFUNC_EXIT
56 } /* PutStr */