submition14

This commit is contained in:
kr820js 2024-03-23 20:22:13 +01:00
parent 116ba6f1da
commit a2ab5eb8e5

View File

@ -165,7 +165,7 @@ int skip_spaces(int i, char *pointer) {
int copy_number(char number[], char *pointer, int i) { int copy_number(char number[], char *pointer, int i) {
int destination_i = 0; int destination_i = 0;
while(pointer[i]!='\0'){ while(pointer[i]!='\0'){
if (!isdigit(pointer[i])&&pointer[i]!='.'&&pointer[i]!=','&&pointer[i]!='-') { if (!isdigit(pointer[i])&&pointer[i]!='.'&&pointer[i]!='-') {
break; break;
} }
if (pointer[i] == '-' && destination_i > 0) { if (pointer[i] == '-' && destination_i > 0) {