lw如何合并字符串?
如题。比如#define A="123"
int b=4;
char strB;
Fmt(strB, %s<%i, b);
合并A和strB,把strB加入到A的后面。 用这个函数可以:
This function appends a copy of a source string (including the terminating ASCII NUL byte) to the end of a target string.The initial character of the string to append overwrites the NUL byte at the end of the target string.If copying takes place between objects that overlap, the behavior is undefined.
/*-------------------- Prototype ---------------------*/
char *strcat (char Target_String[],
const char String_to_Append[]); 这个应该是c的函数吧~~~直接用就行了
页:
[1]