1: # include   <sccs.h>
   2: 
   3: SCCSID(@(#)clrmem.c	8.1	12/31/84)
   4: 
   5: /*
   6: **  CLRMEM -- clear a block of memory
   7: **
   8: **	A block of memory is set to zero.  If we use assembly
   9: **	language, this can be potentially very fast.
  10: **
  11: **	Parameters:
  12: **		p -- a pointer to the area to be cleared.
  13: **		l -- the length of the area in bytes.
  14: **
  15: **	Returns:
  16: **		none
  17: **
  18: **	Side Effects:
  19: **		none
  20: **
  21: **	Trace Flags:
  22: **		none
  23: */
  24: 
  25: clrmem(p, l)
  26: register char   *p;
  27: register int    l;
  28: {
  29:     while (l-- > 0)
  30:         *p++ = 0;
  31: }

Defined functions

clrmem defined in line 3; used 1 times
Last modified: 1986-04-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 768
Valid CSS Valid XHTML 1.0 Strict