I can use the codes below to fulfill this function, however, I 'm more happy if CVI already has provided the same function.
Thanks!
Jacky
void RemoveTrailingSpaces(char *string)
{
int len = strlen(string);
char *ptr=NULL;
if (len)
{
ptr = string + len - 1; // Point to last char -right before NULL-
while (*ptr == ' ' && ptr > string)
{
*(ptr) = 0;
ptr--;
}
}
printf("%s",string);
len=strlen(string);
printf("\n%d",len);
Delay(3);
}