Copyright clean-up (part 1):
[AROS.git] / test / dos / systemtags_slave.c
blob19e8d8a690b0782a4522c0f0e0b89a2426c49ee7
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/dos.h>
7 #include <proto/alib.h>
8 #include <dos/dos.h>
10 #include <stdio.h>
12 #include "systemtags.h"
14 #define DEBUG 0
15 #include <aros/debug.h>
17 int main(int argc, char *argv[])
19 struct STData *data;
20 BPTR input, output;
21 UBYTE buf[80];
23 if (argc == 2)
25 sscanf(argv[1], "%p", &data);
27 D(bug("[systemtags_slave]Input: %p, Output: %p\n",
28 data->input, data->output
29 ));
31 input = SelectInput(data->input);
32 output = SelectOutput(data->output);
34 else
36 /* Flush() will remove command line arguments from Input() */
37 Flush(Input());
40 FPuts(Output(), "Type something (+return):\n");
41 FGets(Input(), buf, 80);
42 FPrintf(Output(), "Got: '%s'\n", buf);
44 if (argc == 2)
46 SelectInput(input);
47 SelectOutput(output);
50 return 0;