home *** CD-ROM | disk | FTP | other *** search
- /***********************************************************/
- /* */
- /* Amiga C Encyclopedia (ACE) V3.0 Amiga C Club (ACC) */
- /* ------------------------------- ------------------ */
- /* */
- /* Book: ACM Amiga Amiga C Club */
- /* Chapter: Hints And Tips Tulevagen 22 */
- /* File: Example4.c 181 41 LIDINGO */
- /* Author: Anders Bjerin SWEDEN */
- /* Date: 92-05-07 */
- /* Version: 1.10 */
- /* */
- /* Copyright 1992, Anders Bjerin - Amiga C Club (ACC) */
- /* */
- /* Registered members may use this program freely in their */
- /* own commercial/noncommercial programs/articles. */
- /* */
- /***********************************************************/
-
- /* This program tells you if it was run from workbench or */
- /* from a CLI window. */
-
- void main();
-
- void main( argc, argv )
- int argc;
- char *argv[];
- {
- if( argc )
- printf( "This program was started from a CLI window!\n" );
- else
- printf( "This program was started from Workbench!\n" );
-
-
- /* Wait for a while: */
- Delay( 5 * 50 );
- }
-