2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <exec/tasks.h>
7 #include <proto/exec.h>
11 extern char *_ProgramName
;
13 int main(int argc
, char **argv
)
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
]);