>>And for what it's worth, in most Amiga-type OSes, if argc =3D=3D NULL tha= t indicates that the program was started from a workbench (by mouse) instead of from a command line. >>argv then points to a startup structure with all the details.. Argc cannot be NULL, it is an integer! -- Bob Ammerman RAm Systems --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .