home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
dev
/
cmanual-3.0.lha
/
CManual
/
Amiga
/
HintsAndTips
/
Example4.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-12
|
1KB
|
38 lines
/***********************************************************/
/* */
/* 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 );
}