Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1137 → Rev 1138

/svarcom/trunk/cmd/set.c
62,11 → 62,12
const char far *ptr;
unsigned short i;
 
/* locate the first space or tab */
for (ptr = p->cmdline; ((*ptr != ' ') && (*ptr != '\t')); ptr++);
/* locate the first space (note that cmdline separators should be sanitized
* to space only by now) */
for (ptr = p->cmdline; *ptr != ' '; ptr++);
 
/* now locate the first non-space/non-tab: that's where the variable name begins */
for (; ((*ptr == ' ') || (*ptr == '\t')); ptr++);
/* now locate the first non-space: that's where the variable name begins */
for (; *ptr == ' '; ptr++);
 
/* copy variable name to buff */
i = 0;