added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / prefs / input / args.c
bloba0891f33a40bc76a63b74a34291597cc17946e45
1 /*
2 Copyright © 2004, The AROS Development Team. All rights reserved.
3 $Id: args.c 21130 2004-02-28 22:50:12Z chodorowski $
4 */
6 #include <dos/rdargs.h>
7 #include <proto/dos.h>
9 #include "args.h"
11 /*** Global Variables *******************************************************/
12 STATIC CONST_STRPTR TEMPLATE = "FROM,USE/S,SAVE/S";
13 STATIC IPTR args[COUNT];
14 STATIC struct RDArgs *rdargs;
16 /*** Functions **************************************************************/
17 BOOL ReadArguments(VOID)
19 rdargs = ReadArgs(TEMPLATE, args, NULL);
20 return rdargs != NULL;
23 VOID FreeArguments(VOID)
25 FreeArgs(rdargs);
28 IPTR GetArgument(enum Argument id)
30 if (id >= 0 && id < COUNT) return args[id];
31 else return 0;