# 2.11BSD#431 - /usr/ingres/source/gutil/pmove.c

##### Functions

    pmove             X

       1: /*
       2: **  Packed Move
       3: **
       4: **	Moves string `s' to storage area `b' of length `l' bytes.  If
       5: **	`s' is too long, it is truncated, otherwise it is padded to
       6: **	length `l' with character `c'.  `B' after the transfer is
       7: **	returned.
       8: */
       9:
      10: char *pmove(s1, b1, l1, c)
      11: char    *s1;
      12: char    *b1;
      13: int l1;
      14: char    c;
      15: {
      16:     register char   *s;
      17:     register char   *b;
      18:     register int    l;
      19:
      20:     s = s1;
      21:     b = b1;
      22:     l = l1;
      23:
      24:     /* move up to `l' bytes */
      25:     while (*s && l > 0)
      26:     {
      27:         *b++ = *s++;
      28:         l -= 1;
      29:     }
      30:
      31:     /* if we still have some `l', pad */
      32:     while (l-- > 0)
      33:     {
      34:         *b++ = c;
      35:     }
      36:
      37:     return (b);
      38: }

#### Defined functions

pmove defined in line 10; used 20 times

- in /usr/ingres/source/access/setkey.c line 78
- in /usr/ingres/source/dbu/copy.c line 593
- in /usr/ingres/source/dbu/create.c line 517
- in /usr/ingres/source/dbu/index.c line 187-189(2)
- in /usr/ingres/source/gutil/pad.c line 15
- in /usr/ingres/source/iutil/errfilen.c line 20
- in /usr/ingres/source/iutil/ingresname.c line 21-24(2)
- in /usr/ingres/source/ovqp/string.c line 150
- in /usr/ingres/source/parser/call_tree.c line 95
- in /usr/ingres/source/parser/rngfcn.c line 127-128(2)
- in /usr/ingres/source/qrymod/fillprotup.c line 66, 111-117(4)
- in /usr/ingres/source/qrymod/main.c line 135
- in /usr/ingres/source/qrymod/writetree.c line 124

Last modified: 1995-02-09 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 369 |