remove redundant part from logical expressions
This commit is contained in:
@ -154,8 +154,8 @@ void WriteCoeff::command(int narg, char **arg)
|
|||||||
// parse type number and skip over it
|
// parse type number and skip over it
|
||||||
int type = std::stoi(str);
|
int type = std::stoi(str);
|
||||||
char *p = str;
|
char *p = str;
|
||||||
while ((*p != '\0') && (*p == ' ')) ++p;
|
while (*p == ' ') ++p;
|
||||||
while ((*p != '\0') && isdigit(*p)) ++p;
|
while (isdigit(*p)) ++p;
|
||||||
|
|
||||||
fprintf(two, "%s %d %s %s", coeff, type, section, p);
|
fprintf(two, "%s %d %s %s", coeff, type, section, p);
|
||||||
utils::sfgets(FLERR, str, BUF_SIZE, one, file, error);
|
utils::sfgets(FLERR, str, BUF_SIZE, one, file, error);
|
||||||
|
|||||||
Reference in New Issue
Block a user