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 >
C/C++ Source or Header  |  1993-10-12  |  1KB  |  38 lines

  1. /***********************************************************/
  2. /*                                                         */
  3. /* Amiga C Encyclopedia (ACE) V3.0      Amiga C Club (ACC) */
  4. /* -------------------------------      ------------------ */
  5. /*                                                         */
  6. /* Book:    ACM Amiga                   Amiga C Club       */
  7. /* Chapter: Hints And Tips              Tulevagen 22       */
  8. /* File:    Example4.c                  181 41  LIDINGO    */
  9. /* Author:  Anders Bjerin               SWEDEN             */
  10. /* Date:    92-05-07                                       */
  11. /* Version: 1.10                                           */
  12. /*                                                         */
  13. /*   Copyright 1992, Anders Bjerin - Amiga C Club (ACC)    */
  14. /*                                                         */
  15. /* Registered members may use this program freely in their */
  16. /*     own commercial/noncommercial programs/articles.     */
  17. /*                                                         */
  18. /***********************************************************/
  19.  
  20. /* This program tells you if it was run from workbench or */
  21. /* from a CLI window.                                     */
  22.  
  23. void main();
  24.  
  25. void main( argc, argv )
  26. int argc;
  27. char *argv[];
  28. {
  29.   if( argc )
  30.     printf( "This program was started from a CLI window!\n" );
  31.   else
  32.     printf( "This program was started from Workbench!\n" );
  33.  
  34.  
  35.   /* Wait for a while: */
  36.   Delay( 5 * 50 );
  37. }
  38.