1 #include <exec/tasks.h>
2 #include <proto/exec.h>
6 extern char *_ProgramName
;
8 int main(int argc
, char **argv
)
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
]);