1: # include "refer.h"
   2: getq(v)
   3: char *v[];
   4: {
   5:     static char buff[QLEN];
   6:     register char *p, *q;
   7:     int c, n 0, las 0;
   8:     p = buff;
   9:     q = sinput;
  10:     while (c = *q++)
  11:     {
  12:         if (c== '\n')
  13:             break;
  14:         if (isalpha(c) || isdigit(c))
  15:         {
  16:             if (las==0)
  17:             {
  18:                 if (n == NQUERY) {
  19:                    fprintf(stderr,
  20:                       "too many specifications:\n%s\n",sinput);
  21:                    break;
  22:                 }
  23:                 v[n++] = p;
  24:                 las=1;
  25:             }
  26:             if (las++ <= 6)
  27:                 *p++ = c;
  28:         }
  29:         else
  30:         {
  31:             if (las>0)
  32:                 *p++ = 0;
  33:             las=0;
  34:         }
  35:     }
  36:     *p=0;
  37:     return(n);
  38: }

Defined functions

getq defined in line 2; used 1 times
Last modified: 1981-11-16
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 590
Valid CSS Valid XHTML 1.0 Strict