2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
14 #include <proto/dos.h>
16 AROS_LH0(struct CommandLineInterface
*, Cli
,
21 struct DosLibrary
*, DOSBase
, 82, Dos
)
24 Returns a pointer to the CLI structure of the current process.
29 Pointer to CLI structure.
32 Do not use this function to test if the process was started from
33 the shell. Check pr_CLI instead.
43 *****************************************************************************/
47 /* Get pointer to process structure */
48 struct Process
*me
= (struct Process
*) FindTask(NULL
);
50 /* Make sure this is a process */
51 if (me
->pr_Task
.tc_Node
.ln_Type
== NT_PROCESS
)
53 /* Nothing spectacular */
54 return (struct CommandLineInterface
*) BADDR(me
->pr_CLI
);