1: # include "refer.h"
   2: static gate 0;
   3: static char buff[LLINE];
   4: output (s)
   5: char *s;
   6: {
   7:     if (gate)
   8:         fputs(buff,ftemp);
   9:     else
  10:         gate=1;
  11:     strcpy(buff,s);
  12: }
  13: lastpunct()
  14: {
  15:     char *p, *r;
  16:     char lch;
  17: 
  18:     trimnl(buff);
  19:     for (p=buff; *p; p++)
  20:         ;
  21:     lch = *--p;
  22:     switch (lch)
  23:     {
  24:     case '.':
  25:     case ',':
  26:     case ';':
  27: #ifdef  MFLAG
  28:         if (!labels) {
  29: #endif
  30:             r="\\*(<";
  31:             while (*r) *p++= *r++;
  32:             *p++ = lch;
  33: #ifdef  MFLAG
  34:         }
  35: #endif
  36:         *p=0;
  37:         return(lch);
  38:     }
  39:     return((char)0);
  40: }
  41: 
  42: flout()
  43: {
  44:     if (gate)
  45:         fputs(buff,ftemp);
  46:     gate=0;
  47: }
  48: 
  49: trimnl(ln)
  50: char *ln;
  51: {
  52:     register char *p ln;
  53:     while (*p) p++;
  54:     p--;
  55:     if (*p == '\n') *p=0;
  56:     return(ln);
  57: }

Defined functions

lastpunct defined in line 13; used 2 times
output defined in line 4; used 9 times

Defined variables

buff defined in line 3; used 5 times
Last modified: 1982-08-02
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 660
Valid CSS Valid XHTML 1.0 Strict