2 // 25 Apr 2001 17:28:53
4 #include <workbench/startup.h>
10 int main(int argc
, char *argv
[])
13 struct WBStartup
*Wbs
;
14 struct MsgPort
*fsPort
;
17 Wbs
= (struct WBStartup
*) argv
;
21 fprintf(stderr
, "Please start this programn from Workbench\n");
25 printf("NumArgs = %ld\n", Wbs
->sm_NumArgs
);
27 GetCurrentDirName(Path
, sizeof(Path
));
28 printf("CurrentDir = <%s>\n", Path
);
30 fsPort
= GetFileSysTask();
33 printf("default filesystem = <%s>\n", ((struct Task
*) fsPort
->mp_SigTask
)->tc_Node
.ln_Name
);
36 for (n
=0; n
<Wbs
->sm_NumArgs
; n
++)
38 struct WBArg
*arg
= &Wbs
->sm_ArgList
[n
];
40 NameFromLock(arg
->wa_Lock
, Path
, sizeof(Path
));
41 printf("arg[%ld] Lock=%08lx <%s> Name=<%s>\n", n
, arg
->wa_Lock
, Path
, arg
->wa_Name
);