[code:1]
#include <stdio.h>
#include <stdlib.h>
typedef struct tagData{
int nFlag;
int nSize;
char* pszData;
}DATA;
DATA dtCommand, dtOption; //--
char btBuf[1024];
char aaa[1024];
int i;
int main(int argc,char *argv[])
{
int b_size,command_size,option_size;
memset(btBuf, 0x00, sizeof(btBuf)); //--
dtCommand.nFlag = 0;
dtCommand.nSize=strlen("command command");
dtCommand.pszData=(char *)malloc(dtCommand.nSize*sizeof(char));