|
@@ -155,7 +155,7 @@ char* trim(char* str)
|
|
|
// value must NOT be deallocated using free() etc.
|
|
|
char *trim2(char *str,char flag) {
|
|
|
if(flag&1) { // Trim leading space
|
|
|
- while(isspace(*str)) str++;
|
|
|
+ while(ISSPACE(*str)) str++;
|
|
|
if(*str == 0) // All spaces?
|
|
|
return str;
|
|
|
}
|
|
@@ -163,7 +163,7 @@ char *trim2(char *str,char flag) {
|
|
|
char *end;
|
|
|
|
|
|
end = str + strlen(str) - 1;
|
|
|
- while(end > str && isspace(*end)) end--;
|
|
|
+ while(end > str && ISSPACE(*end)) end--;
|
|
|
*(end+1) = 0; // Write new null terminator
|
|
|
}
|
|
|
|