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