home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 100-199 / ff110.lzh / Pdc / lib / strcat.c < prev    next >
C/C++ Source or Header  |  1987-10-28  |  412b  |  19 lines

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