Updated PCI IDs to latest snapshot.
[tangerine.git] / rom / dos / putstr.c
blobca7830d9b38d50d9fd6077946830e85d280bc796
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Lang: english
6 */
7 #include <proto/exec.h>
8 #include <dos/dosextens.h>
10 #include "dos_intern.h"
12 /*****************************************************************************
14 NAME */
15 #include <proto/dos.h>
17 AROS_LH1(LONG, PutStr,
19 /* SYNOPSIS */
20 AROS_LHA(CONST_STRPTR, string, D1),
22 /* LOCATION */
24 struct DosLibrary *, DOSBase, 158, Dos)
26 /* FUNCTION
27 This routine writes an unformatted string to the default output. No
28 newline is appended to the string and any error is returned. This
29 routine is buffered.
31 INPUTS
32 str - Null-terminated string to be written to default output
34 RESULT
35 error - 0 for success, -1 for any error.
37 SEE ALSO
38 FGetC(), IoErr()
40 *****************************************************************************/
42 AROS_LIBFUNC_INIT
44 BPTR file=((struct Process *)FindTask(NULL))->pr_COS;
46 return(FPuts(file, string));
48 AROS_LIBFUNC_EXIT
49 } /* PutStr */