home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * TEST.C
- */
-
- /*
- * The #ifdef is to demonstrate what is required to compile this
- * test program with registered args.
- */
-
- #ifdef REGISTERED
- #include "test-protos.h"
- #include <stdio.h>
- #endif
-
- main(ac, av)
- short ac;
- char *av[];
- {
- if (ac == 1) {
- char buf[256];
- while (GetString(buf, sizeof(buf)) >= 0)
- printf("GET: %s\n", buf);
- } else {
- short i;
-
- for (i = 1; i < ac; ++i) {
- PostString(av[i]);
- printf("POSTED: %s\n", av[i]);
- }
- }
- return(0);
- }
-
-