len=strlen(string);
if(len==
strcpy(command
}
else{
//獲得命令
s=NULL;
s=strchr(string
if(s!=NULL){
*s=
}
strcpy(command
//測試命令類型
if((!strcmp(command
comm=
}
else{
if((!strcmp(command
comm=
}
else{
if((!strcmp(command
comm=
}
else{
if((!strcmp(command
comm=
}
else{
if((!strcmp(command
comm=
}
else{
[
From:http://tw.wingwit.com/Article/program/czxt/201311/24006.html