1: # include "stdio.h"
   2: extern char *soutput, *tagout, usedir[];
   3: 
   4: result(master, nf, fc)
   5: union ptr {
   6:     unsigned *a;
   7:     long *b;
   8: }
   9: *master;
  10: FILE *fc;
  11: {
  12:     int i, c;
  13:     char *s;
  14:     long lp;
  15:     extern int iflong;
  16:     char res[100];
  17: 
  18:     for(i=0; i<nf; i++)
  19:     {
  20:         lp = iflong ? master.b[i] : master.a[i];
  21:         fseek(fc,lp, 0);
  22:         fgets(res, 100, fc);
  23:         for(s=res; c = *s; s++)
  24:             if (c== ';')
  25:             {
  26:                 *s=0;
  27:                 break;
  28:             }
  29:         if (tagout !=0)
  30:         {
  31:             if (res[0]=='/' || usedir[0]==0)
  32:                 sprintf(tagout, "%s", res);
  33:             else
  34:                 sprintf(tagout, "%s/%s", usedir, res);
  35:             while (*tagout) tagout++;
  36:         }
  37:         else
  38:         {
  39:             if (res[0]!='/' || usedir[0]==0)
  40:                 printf("%s/", usedir);
  41:             printf("%s\n", res);
  42:         }
  43:     }
  44: }
  45: 
  46: # include "sys/types.h"
  47: # include "sys/stat.h"
  48: long gdate(f)
  49: FILE *f;
  50: {
  51:     struct stat sb;
  52:     fstat (f->_file, &sb);
  53:     return  (sb . st_mtime);
  54: }

Defined functions

gdate defined in line 48; used 6 times
result defined in line 4; never used

Defined union's

ptr defined in line 5; never used
Last modified: 1981-11-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 686
Valid CSS Valid XHTML 1.0 Strict