home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3937 / mem.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-30  |  335 b   |  20 lines

  1. /*    Adapter clone routines */
  2.  
  3. #ifdef    NOMEM
  4.  
  5. memcpy(to, from, len)
  6. char *to, *from;
  7. int len; {
  8.     /* Well, yeah, I could use Duff's device, but what the hey,
  9.        it's *your* fault for not having a decent O/S */
  10.     while(len--) *to++ = *from++;
  11. }
  12.  
  13. memset(buf, c, cnt)
  14. char *buf, c;
  15. int cnt; {
  16.     while(cnt--) *buf++ = c;
  17. }
  18.  
  19. #endif
  20.