+ Fixes
[opsoft.git] / silentbob / src / interactive.cxx
blob79041b913a895f0d763cde0d02d30c084562eb7d
1 /*
2 * (c) Oleg Puchinin 2008
3 * graycardinalster@gmail.com
4 *
5 */
7 #include <head.h>
9 void tags_interactive ()
11 DArray * t;
12 char m_buf[512];
14 m_buf[511] = '\0';
15 while (true) {
16 printf ("Tag: ");
17 fflush (stdout);
19 if (! fgets (m_buf, 511, stdin))
20 break;
22 chomp (m_buf);
23 t = Dsplit (m_buf, (char *) " ");
24 if (! t)
25 continue;
26 tags (t, NULL);
27 t->foreach (free);
28 delete t;