The first function in the plugin must return a pointer to the plugin_table.
[AROS.git] / test / clib / arguments.c
blob8b21da92415c62cf27cbc0dea30e32fbc392ef90
1 #include <exec/tasks.h>
2 #include <proto/exec.h>
4 #include <stdio.h>
6 extern char *_ProgramName;
8 int main(int argc, char **argv)
10 int i;
11 struct Task *me = FindTask(NULL);
13 printf("Task name: %s\n", me->tc_Node.ln_Name);
14 printf("Program name: %s\n", _ProgramName);
15 printf("Got %d arguments:\n", argc);
17 for (i = 0; i < argc; i++)
18 printf("%d\t%s\n", i, argv[i]);
20 return 0;