[code:1]
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct _Msg
{
int iLen;
char *pMsg;
};
bool StructCat(struct _Msg *,struct _Msg *);
int main()
{
struct _Msg aMsg,bMsg,cMsg;
char buf[1024];
strcpy(buf,"abcde");
bMsg.iLen=strlen(buf);
bMsg.pMsg=buf;
memset((void *)&aMsg,0,sizeof(aMsg));
StructCat(&aMsg,&bMsg);
strcpy(buf,"fghij");
cMsg.iLen=strlen(buf);
cMsg.pMsg=buf;
StructCat(&aMsg,&cMsg);