1: /* Copyright (c) 1979 Regents of the University of California */
   2: 
   3: static char sccsid[] = "@(#)DISPOSE.c 1.3 6/10/81";
   4: 
   5: #include    "h00vars.h"
   6: 
   7: DISPOSE(var, siz)
   8:     register char   **var;  /* pointer to pointer being deallocated */
   9:     long        siz;    /* sizeof(bletch) */
  10: {
  11:     register int size = siz;
  12: 
  13:     if (*var == 0 || *var + size > _maxptr || *var < _minptr) {
  14:         ERROR("Pointer value out of legal range\n", 0);
  15:         return;
  16:     }
  17:     free(*var);
  18:     if (*var == _minptr)
  19:         _minptr += size;
  20:     if (*var + size == _maxptr)
  21:         _maxptr -= size;
  22:     *var = (char *)(0);
  23: }

Defined functions

Defined variables

sccsid defined in line 3; never used
Last modified: 1983-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 888
Valid CSS Valid XHTML 1.0 Strict