void VS_StrLTrim(char *value) { char *temp = value; while (*temp==0x20 || *temp==0x0A || *temp==0x0D) { ++temp; } while(*temp != 0x00) { *value = *temp; ++value; ++temp; } *value = 0x00; } void VS_StrRTrim(char *value) { char *temp = value+strlen(value)-1; while (*temp==0x20 || *temp==0x0A || *temp==0x0D) { *temp = 0x00; --temp; } } void VS_StrTrim(char *value) { VS_StrLTrim(value); VS_StrRTrim(value); }
浙公网安备 33010602011771号