home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff281.lzh / FarPrint / FarTest.c < prev    next >
C/C++ Source or Header  |  1989-11-20  |  999b  |  44 lines

  1. /* FarTest.c ****************************************************************
  2. *
  3. *    FarTest -------    Debugging functions for programs which don't
  4. *            have links to their environment.
  5. *
  6. *            FarPrint demonstration program.
  7. *
  8. *    Author --------    Olaf Barthel of ED Electronic Design Hannover
  9. *            Brabeckstrasse 35
  10. *            D-3000 Hannover 71
  11. *
  12. *            Federal Republic of Germany.
  13. *
  14. *    This program truly is in the PUBLIC DOMAIN. Written on a sunny
  15. *    September day in 1989.
  16. *
  17. *    Compiled using Aztec C 3.6a, CygnusEd Professional & ARexx.
  18. *
  19. ****************************************************************************/
  20.  
  21.     /* main(argc,argv):
  22.      *
  23.      *    This is meant to be the main demonstration
  24.      *    part for this program.
  25.      */
  26.  
  27. void
  28. main(argc,argv)
  29. long argc;
  30. char *argv[];
  31. {
  32.         /* Send the first calling argument to FarPrint. */
  33.  
  34.     SendText("%s",argv[1]);
  35.  
  36.         /* Request a number and print it. */
  37.  
  38.     printf("%d\n",RequestNumber("FarTest"));
  39.  
  40.         /* Request a text and print it. */
  41.  
  42.     printf("%s\n",RequestString("FarTest"));
  43. }
  44.