remove redundant part from logical expressions

This commit is contained in:
Axel Kohlmeyer
2025-06-24 05:47:36 -04:00
parent df04fc943d
commit e8780449d8

View File

@ -154,8 +154,8 @@ void WriteCoeff::command(int narg, char **arg)
// parse type number and skip over it
int type = std::stoi(str);
char *p = str;
while ((*p != '\0') && (*p == ' ')) ++p;
while ((*p != '\0') && isdigit(*p)) ++p;
while (*p == ' ') ++p;
while (isdigit(*p)) ++p;
fprintf(two, "%s %d %s %s", coeff, type, section, p);
utils::sfgets(FLERR, str, BUF_SIZE, one, file, error);