#ifndef _TOOLS_H #define _TOOLS_H /*********************************** void getStrSegment(char* s, char* t,int idx) function: get the content of the string, the content is seperated by a space para: s: input string t: output string idx: which segment to get ************************************/ void getStrSegment(char* s, char* t,int idx) { short len=0, Index=0; short i=0,j=0; char tmp[32]; len = strlen(s)+1; strcpy(tmp,s); for (i=0;i