home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 387b.lha / dice_v2.02 / lib / string / strcat.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-30  |  314 b   |  30 lines

  1.  
  2. /*
  3.  *  STRCAT.C
  4.  *
  5.  *  (c)Copyright 1990, Matthew Dillon, All Rights Reserved
  6.  */
  7.  
  8. #include <string.h>
  9.  
  10. typedef unsigned char ubyte;
  11.  
  12. char *
  13. strcat(d, s)
  14. char *d;
  15. const char *s;
  16. {
  17.     char c;
  18.     char *base= d;
  19.  
  20.     d += strlen(d);
  21.     while (c = *s) {
  22.     *d = c;
  23.     ++s;
  24.     ++d;
  25.     }
  26.     *d = 0;
  27.     return(base);
  28. }
  29.  
  30.