home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume12 / cnews / part01 / libc / strings / strcpy.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-10-19  |  257 b   |  18 lines

  1. /*
  2.  * strcpy - copy string src to dst
  3.  */
  4. char *                /* dst */
  5. strcpy(dst, src)
  6. char *dst;
  7. CONST char *src;
  8. {
  9.     register char *dscan;
  10.     register CONST char *sscan;
  11.  
  12.     dscan = dst;
  13.     sscan = src;
  14.     while ((*dscan++ = *sscan++) != '\0')
  15.         continue;
  16.     return(dst);
  17. }
  18.