From a2ab5eb8e57c8500debc40bd4813795db67711df Mon Sep 17 00:00:00 2001 From: kr820js Date: Sat, 23 Mar 2024 20:22:13 +0100 Subject: [PATCH] submition14 --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index 775ad4e..5d192f4 100644 --- a/a1/program.c +++ b/a1/program.c @@ -165,7 +165,7 @@ int skip_spaces(int i, char *pointer) { int copy_number(char number[], char *pointer, int i) { int destination_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; } if (pointer[i] == '-' && destination_i > 0) {