# 2.11BSD#431 - /usr/ingres/source/iutil/clr_tuple.c

##### Functions

    clr_tuple         X

       1: # include   "../ingres.h"
       2: # include   "../symbol.h"
       3: # include   "../access.h"
       4:
       5: clr_tuple(desc, tuple)
       6: struct descriptor   *desc;
       7: char            *tuple;
       8:
       9: /*
      10: **	Clr_tuple initializes all character domains
      11: **	to blank and all numeric domains to zero.
      12: */
      13:
      14: {
      15:     register struct descriptor  *d;
      16:     register char           *tup;
      17:     register int            i;
      18:     int             j, pad;
      19:
      20:     d = desc;
      21:
      22:     for (i = 1; i <= d->relatts; i++)
      23:     {
      24:         if (d->relfrmt[i] == CHAR)
      25:             pad = ' ';
      26:         else
      27:             pad = 0;
      28:
      29:         tup = &tuple[d->reloff[i]];
      30:         j = d->relfrml[i] & I1MASK;
      31:
      32:         while (j--)
      33:             *tup++ = pad;
      34:     }
      35: }

#### Defined functions

clr_tuple defined in line 5; used 6 times

- in /usr/ingres/source/dbu/copy.c line 323
- in /usr/ingres/source/dbu/modify.c line 853
- in /usr/ingres/source/ovqp/scan.c line 41
- in /usr/ingres/source/qrymod/d_integ.c line 143
- in /usr/ingres/source/qrymod/d_prot.c line 142
- in /usr/ingres/source/qrymod/define.c line 320

Last modified: 1980-12-17 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 401 |