home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / alde_c / misc / lib / jplc2 / strcat.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-07-22  |  675 b   |  26 lines

  1. /* 1.0  05-13-85                         (strcat.c)
  2. /************************************************************************
  3.  *            Robert C. Tausworthe                *
  4.  *            Jet Propulsion Laboratory            *
  5.  *            Pasadena, CA 91009        1985        *
  6.  ************************************************************************/
  7.  
  8. #include "defs.h"
  9. #include "stdtyp.h"
  10.  
  11. /************************************************************************/
  12.     STRING
  13. strcat(s1, s2)    /* concatenate strings s1 and s2, return pointer s1    */
  14.  
  15. /*----------------------------------------------------------------------*/
  16. STRING s1, s2;
  17. {
  18.     STRING t;
  19.  
  20.     for (t = s1; *s1; s1++)
  21.         ;
  22.     while (*s1++ = *s2++)
  23.         ;
  24.     return t;
  25. }
  26.