home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / shell / xd-2.08 / xd-2 / xd / Command / separate.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-09  |  268 b   |  18 lines

  1. #include "Command.h"
  2.  
  3. void Command::separated_pattern(char *next)
  4. {
  5.     char
  6.         *token;
  7.  
  8.     token = strtok(next, "/-");        // grab the first token
  9.  
  10.     do
  11.     {
  12.         strcat(pattern, token);        // append it
  13.         strcat(pattern, "*/");        // append '*/'
  14.     }
  15.     while (token = strtok(0, "/-"));
  16. }
  17.  
  18.