Currently At: Programming Reference > C Reference > Standard C String & Character > strcat()

strcat()


Syntax:
#include <string.h>
char *strcat( char *str1, const char *str2 );


Description:
The strcat() function concatenates str2 onto the end of str1, and returns str1.

Example:
printf( "Enter your name: " );
scanf( "%s", name );
title = strcat( name, " the Great" );
printf( "Hello, %s\n", title );


Related Topics:
strchr(), strcmp(), strcpy()


Web Standards & Support:

Link to and support eLook.org Powered by LoadedWeb Web Hosting
Valid XHTML 1.0! Valid CSS! eLook.org FireFox Extensions