home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume7 / rvi / part4 / zero.c < prev   
Encoding:
C/C++ Source or Header  |  1986-11-30  |  213 b   |  21 lines

  1. /*    zero - zero data structures
  2.     84/12/18.  A. E. Klietz.
  3. */
  4.  
  5. #include "rv.h"
  6.  
  7. #ifdef zero
  8. #undef zero
  9. #endif
  10.  
  11. #ifndef USG
  12. void
  13. zero(ptr, len)
  14. char *ptr;
  15. int len;
  16. {
  17.     for (; len > 0; --len)
  18.         *(ptr++) = 0;
  19. }
  20. #endif
  21.