Detabbed
[AROS.git] / rom / dos / output.c
blob3ab51d041cc505d27f080908e417ae079e2f537c
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <aros/debug.h>
10 #include <proto/exec.h>
11 #include "dos_intern.h"
13 /*****************************************************************************
15 NAME */
16 #include <proto/dos.h>
18 AROS_LH0(BPTR, Output,
20 /* SYNOPSIS */
22 /* LOCATION */
23 struct DosLibrary *, DOSBase, 10, Dos)
25 /* FUNCTION
26 Returns the current output stream or 0 if there is no current
27 output stream.
29 INPUTS
31 RESULT
32 Output stream handle.
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
42 INTERNALS
44 *****************************************************************************/
46 AROS_LIBFUNC_INIT
48 /* Get pointer to process structure */
49 struct Process *me=(struct Process *)FindTask(NULL);
51 ASSERT_VALID_PROCESS(me);
53 /* Nothing spectacular */
54 return me->pr_COS;
55 AROS_LIBFUNC_EXIT
56 } /* Output */