home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / simtel / sigm / vols000 / vol078 / cpybuf.c < prev    next >
C/C++ Source or Header  |  1984-04-29  |  237b  |  14 lines

  1.  
  2. /* cpybuf - copy buffer "s" to "d" for "n" bytes */
  3. cpy_buf (d, s, n)
  4. /***************/
  5.     char *d, *s;
  6.     int n;
  7.     {
  8.     int i;
  9.  
  10.     for (i = n; i != 0; --i)
  11.         *d++ = *s++;
  12.     return (n);
  13.     }  /* cpy_buf */
  14.