home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / dev / cmanual-3.0.lha / CManual / Amiga / HintsAndTips / Example2.c < prev    next >
C/C++ Source or Header  |  1993-10-12  |  1KB  |  33 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:    Example2.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 will print "Hello!" in the CLI window if      */
  21. /* started from CLI, or the text will be printed in a special */
  22. /* window that is automatically opened if run from workbench. */
  23.  
  24. void main();
  25.  
  26. void main()
  27. {
  28.   printf( "Hello!\n" );
  29.  
  30.   /* Wait for a while: */
  31.   Delay( 5 * 50 );
  32. }
  33.