全部博文(404)
分类: LINUX
2009-02-26 14:10:50
语法:
#include char *strcat( char *str1, const char *str2 ); |
功能:函数将字符串str2 连接到str1的末端,并返回指针str1. 例如:
printf( "Enter your name: " );
scanf( "%s", name );
title = strcat( name, " the Great" );
printf( "Hello, %s\n", title );