home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c025 / 1.ddi / STRCAT.C < prev    next >
Encoding:
Text File  |  1985-01-24  |  238 b   |  14 lines

  1. main()    /* strcat.c -- illustrates strcat() */
  2.  
  3. {
  4. char result[20], *first, *second;
  5. first = "How now";
  6. second = " brown cow?";
  7.  
  8. strcpy(result, first);
  9. strcat(result, second);
  10. puts(result);
  11.  
  12. /* prints "how now brown cow" */
  13. }
  14.