home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / emx / test / explode.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  394 b   |  23 lines

  1. /* explode.c (emx+gcc) */
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5.  
  6. int main (int argc, char *argv[])
  7. {
  8.   int i, j;
  9.   char **list;
  10.  
  11.   for (i = 1; i < argc; ++i)
  12.     {
  13.       list = _fnexplode (argv[i]);
  14.       if (list != NULL)
  15.         {
  16.           for (j = 0; list[j] != NULL; ++j)
  17.             puts (list[j]);
  18.           _fnexplodefree (list);
  19.         }
  20.     }
  21.   return (0);
  22. }
  23.