Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>strcat</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
strcat

Usage

   #include <string.h>
   char *strcat(char *string1,const char *string2);

   ANSI

Description

   Appends a copy of string2 onto the end of string1. The application code
   is responsible for ensuring that there is enough space in the string to
   hold the result.

Example 

   #include <stdio.h>
   #include <string.h>
   #include <stdlib.h>

   char string1[50] = " 1 Example string ";
   char string2[50] = " 2 Example string ";

   int main()

   {
       printf("strcat example [%s]\n",
               strcat(string1,string2));
       return EXIT_SUCCESS;
   }

Return Value

   Returns pointer to first string.





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson