2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
8 #include "dos_intern.h"
9 #include <dos/dosextens.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
15 #include <proto/dos.h>
17 AROS_LH1(STRPTR
, SetArgStr
,
20 AROS_LHA(CONST_STRPTR
, string
, D1
),
23 struct DosLibrary
*, DOSBase
, 90, Dos
)
26 Sets the arguments to the current process. The arguments must be
27 reset to the original value before process exit.
30 string - The new argument string. (A C string).
33 The address of the previous argument string. May be NULL.
42 GetArgStr(), RunCommand()
46 *****************************************************************************/
51 struct Process
*pr
= (struct Process
*)FindTask(NULL
);
52 oldStr
= pr
->pr_Arguments
;
53 pr
->pr_Arguments
= (STRPTR
)string
;