home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / lib / util / tai_test.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-06-04  |  388 b   |  25 lines

  1. #include "util.h"
  2.  
  3. main ()
  4. {
  5.     static char initfile[] = "init.tai";
  6.     char *taiargs[100];
  7.     int nargs;
  8.     register int ind;
  9.  
  10.     if (tai_init (initfile) < OK)
  11.     {
  12.         perror ("init");
  13.         exit ();
  14.     }
  15.     while ((nargs = tai_get (100, taiargs)) > 0)
  16.     {
  17.         for (ind = 0; ind < nargs; ind++)
  18.             printf ("'%s' ", taiargs[ind]);
  19.         (void) putchar ('\n');
  20.     }
  21.     if (nargs < 0)
  22.         perror ("tai_get");
  23.     tai_end ();
  24. }
  25.