home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
code_examples
/
cmanual_456
/
acm2.lzh
/
HintsAndTips
/
Example4.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-27
|
482b
|
24 lines
/* Example 4 */
/* 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[];
{
int loop;
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: */
for( loop = 0; loop < 500000; loop++ )
;
}