New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / dos / setargstr.c
blob1b513ad44f34ad48c0b8afc595634126d53626d8
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include "dos_intern.h"
9 #include <dos/dosextens.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
14 NAME */
15 #include <proto/dos.h>
17 AROS_LH1(STRPTR, SetArgStr,
19 /* SYNOPSIS */
20 AROS_LHA(STRPTR, string, D1),
22 /* LOCATION */
23 struct DosLibrary *, DOSBase, 90, Dos)
25 /* FUNCTION
26 Sets the arguments to the current process. The arguments must be
27 reset to the original value before process exit.
29 INPUTS
30 string - The new argument string. (A C string).
32 RESULT
33 The address of the previous argument string. May be NULL.
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
42 GetArgStr(), RunCommand()
44 INTERNALS
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
49 AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
51 STRPTR oldStr;
52 struct Process *pr = (struct Process *)FindTask(NULL);
53 oldStr = pr->pr_Arguments;
54 pr->pr_Arguments = string;
56 return oldStr;
58 AROS_LIBFUNC_EXIT
59 } /* SetArgStr */