home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / compiler / small_c / byte_sc / strcat.c < prev    next >
Encoding:
Text File  |  1987-10-04  |  256 b   |  13 lines

  1. /*
  2. ** concatenate t to end of s 
  3. ** s must be large enough
  4. */
  5. strcat(s, t) char *s, *t; {
  6.   char *d;
  7.   d = s;
  8.   --s;
  9.   while (*++s) ;
  10.   while (*s++ = *t++) ;
  11.   return(d);
  12.   }
  13.