# 2.11BSD#431 - /usr/src/usr.sbin/sendmail/src/bcopy.c

##### Functions

    bcopy             X
    bzero             X

       1: /*
       2: **  Sendmail
       3: **  Copyright (c) 1983  Eric P. Allman
       4: **  Berkeley, California
       5: **
       6: **  Copyright (c) 1983 Regents of the University of California.
       7: **  All rights reserved.  The Berkeley software License Agreement
       8: **  specifies the terms and conditions for redistribution.
       9: */
      10:
      11: #if !defined(lint) && !defined(NOSCCS)
      12: static char SccsId[] = "@(#)bcopy.c	5.1 (Berkeley) 6/7/85";
      13: #endif
      14:
      15: # include "useful.h"
      16:
      17: /*
      18: **  BCOPY -- block copy.
      19: **
      20: **	Parameters:
      21: **		s -- source of bytes.
      22: **		d -- destination of bytes.
      23: **		l -- length of block to move.
      24: **
      25: **	Returns:
      26: **		none.
      27: **
      28: **	Side Effects:
      29: **		copies 's' to 'd' for 'l' bytes.
      30: **
      31: **	Notes:
      32: **		This can be easily written in assembly language on
      33: **		machines like VAXes if performance is needed.
      34: */
      35:
      36: /*VARARGS0*/
      37: bcopy(s, d, l)
      38:     register char *s, *d;
      39:     register int l;
      40: {
      41:     while (l-- > 0)
      42:         *d++ = *s++;
      43: }
      44: /*
      45: **  BZERO -- zero a block of memory
      46: **
      47: **	Parameters:
      48: **		p -- location to clear.
      49: **		l -- number of bytes to clear.
      50: **
      51: **	Returns:
      52: **		none.
      53: **
      54: **	Side Effects:
      55: **		none.
      56: */
      57:
      58: bzero(p, l)
      59:     register char *p;
      60:     register int l;
      61: {
      62:     while (l-- > 0)
      63:         *p++ = 0;
      64: }

#### Defined functions

bcopy defined in line 37; used 12 times

- in /usr/src/usr.sbin/sendmail/src/daemon.c line 347
- in /usr/src/usr.sbin/sendmail/src/envelope.c line 48-50(2), 203
- in /usr/src/usr.sbin/sendmail/src/headers.c line 132
- in /usr/src/usr.sbin/sendmail/src/macro.c line 135
- in /usr/src/usr.sbin/sendmail/src/parseaddr.c line 763, 801, 811
- in /usr/src/usr.sbin/sendmail/src/readcf.c line 581
- in /usr/src/usr.sbin/sendmail/src/stats.c line 92
- in /usr/src/usr.sbin/sendmail/src/util.c line 188

bzero defined in line 58; used 5 times

- in /usr/src/usr.sbin/sendmail/src/parseaddr.c line 857
- in /usr/src/usr.sbin/sendmail/src/queue.c line 172
- in /usr/src/usr.sbin/sendmail/src/readcf.c line 393
- in /usr/src/usr.sbin/sendmail/src/sendmail.h line 81
- in /usr/src/usr.sbin/sendmail/src/stab.c line 111

#### Defined variables

SccsId defined in line 12; never used

Last modified: 1988-02-11 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 883 |