home *** CD-ROM | disk | FTP | other *** search
- /* FarTest.c ****************************************************************
- *
- * FarTest ------- Debugging functions for programs which don't
- * have links to their environment.
- *
- * FarPrint demonstration program.
- *
- * Author -------- Olaf Barthel of ED Electronic Design Hannover
- * Brabeckstrasse 35
- * D-3000 Hannover 71
- *
- * Federal Republic of Germany.
- *
- * This program truly is in the PUBLIC DOMAIN. Written on a sunny
- * September day in 1989.
- *
- * Compiled using Aztec C 3.6a, CygnusEd Professional & ARexx.
- *
- ****************************************************************************/
-
- /* main(argc,argv):
- *
- * This is meant to be the main demonstration
- * part for this program.
- */
-
- void
- main(argc,argv)
- long argc;
- char *argv[];
- {
- /* Send the first calling argument to FarPrint. */
-
- SendText("%s",argv[1]);
-
- /* Request a number and print it. */
-
- printf("%d\n",RequestNumber("FarTest"));
-
- /* Request a text and print it. */
-
- printf("%s\n",RequestString("FarTest"));
- }
-