trim
void trim(char *s);
//ENDH
/**********************************************
    trim all leading and trailing whitespaces
***********************************************/
void trim(char *s)
{
	int t;
        int l;
        l=StrLen(s)-1;
	for(t=l; t>0; t--){
            if(s[t]>' ') break;
            s[t]=0;
	}
        for(;;){
           if(s[0]==0 || s[0]>' ') break;
           for(t=0; t<StrLen(s); t++){
              s[t]=s[t+1];
           }
        }
}
