2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
8 #include <aros/debug.h>
10 #include "dos_intern.h"
11 #include <dos/dosextens.h>
12 #include <proto/exec.h>
14 /*****************************************************************************
17 #include <proto/dos.h>
19 AROS_LH1(STRPTR
, SetArgStr
,
22 AROS_LHA(CONST_STRPTR
, string
, D1
),
25 struct DosLibrary
*, DOSBase
, 90, Dos
)
28 Sets the arguments to the current process. The arguments must be
29 reset to the original value before process exit.
32 string - The new argument string. (A C string).
35 The address of the previous argument string. May be NULL.
44 GetArgStr(), RunCommand()
48 *****************************************************************************/
53 struct Process
*pr
= (struct Process
*)FindTask(NULL
);
54 ASSERT_VALID_PROCESS(pr
);
55 oldStr
= pr
->pr_Arguments
;
56 pr
->pr_Arguments
= (STRPTR
)string
;