use std::stoX() functions

This commit is contained in:
Axel Kohlmeyer
2024-07-30 03:57:23 -04:00
parent 92cbbaab6a
commit 620af2599b
6 changed files with 19 additions and 18 deletions

View File

@ -152,7 +152,7 @@ void WriteCoeff::command(int narg, char **arg)
}
// parse type number and skip over it
int type = atoi(str);
int type = std::stoi(str);
char *p = str;
while ((*p != '\0') && (*p == ' ')) ++p;
while ((*p != '\0') && isdigit(*p)) ++p;