home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 109.lha / PD_C / lib / strcpy.c < prev    next >
C/C++ Source or Header  |  1986-11-20  |  351b  |  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.