1: # include   "../ingres.h"
   2: # include   "../aux.h"
   3: 
   4: /*
   5: ** Errfilen() -- Returns the pathname where the error file can be found
   6: **
   7: **	It is assumed that the error digit cannot be more than 999
   8: */
   9: 
  10: char *errfilen(digit)
  11: int digit;
  12: {
  13:     register char   *cp;
  14:     char        temp[100], ver[12];
  15:     char        *ztack(), *concat(), *iocv();
  16:     extern char Version[];
  17: 
  18:     /* first form the string for version A.B_X */
  19:     /* only the first 7 chars of VERSION are accepted */
  20:     pmove(Version, ver, sizeof (ver) - 5, '\0');
  21: 
  22:     /* make sure any mod number is removed */
  23:     for (cp = ver; *cp; cp++)
  24:         if (*cp == '/')
  25:             break;
  26: 
  27:     /* now insert the "_X" */
  28:     *cp++ = '_';
  29:     smove(iocv(digit), cp);
  30: 
  31:     /* now put "/files/error" into temp */
  32:     concat("/files/error", ver, temp);
  33: 
  34:     return (ztack(Pathname, temp));
  35: }

Defined functions

errfilen defined in line 10; used 4 times
Last modified: 1980-12-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 572
Valid CSS Valid XHTML 1.0 Strict