grub2: bring back build of aros-side grub2 tools
[AROS.git] / test / clib / arguments.c
blob39dfd65c5982bcb30dd0195cd88b67728a7a6749
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/tasks.h>
7 #include <proto/exec.h>
9 #include <stdio.h>
11 extern char *_ProgramName;
13 int main(int argc, char **argv)
15 int i;
16 struct Task *me = FindTask(NULL);
18 printf("Task name: %s\n", me->tc_Node.ln_Name);
19 printf("Program name: %s\n", _ProgramName);
20 printf("Got %d arguments:\n", argc);
22 for (i = 0; i < argc; i++)
23 printf("%d\t%s\n", i, argv[i]);
25 return 0;