submition6

This commit is contained in:
kr820js 2024-03-23 18:59:31 +01:00
parent 1013f4069f
commit 9260a40089

View File

@ -84,20 +84,20 @@ int analizing_string(char* pointer){
char *first_number_cucumber=strtok(buffer_for_token, delim);
if(first_number_cucumber==NULL||is_number_question_mark(first_number_cucumber)==0){
if(first_number_cucumber==NULL) {//||is_number_question_mark(first_number_cucumber)==0){
return -1;
}
char *second_number=strtok(NULL, delim);
if(second_number==NULL||is_number_question_mark(second_number)==0){
if(second_number==NULL) { //||is_number_question_mark(second_number)==0){
return -1;
}
char *result=strtok(NULL, delim);
if(result==NULL||is_number_question_mark(result)==0){
if(result==NULL) { //||is_number_question_mark(result)==0){
return -1;
}
@ -127,31 +127,11 @@ int analizing_string(char* pointer){
}
int is_number_question_mark(char *pointer){
/*int is_number_question_mark(char *pointer){
for(int i=0; pointer[i]!='\0'; i++){
if (!isdigit(pointer[i])&&pointer[i]!='.'&&pointer[i]!=',') {
return 0;
}
}
return 1;
}
}*/