submition14
This commit is contained in:
parent
116ba6f1da
commit
a2ab5eb8e5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user