Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I\'d roll my own, but I would think this is a common problem wit
The easiest way to skip leading spaces in a string is, imho,
#include int main() { char *foo=" teststring "; char *bar; sscanf(foo,"%s",bar); printf("String is >%s<\n",bar); return 0; }