submition5

This commit is contained in:
kr820js 2024-03-23 18:55:17 +01:00
parent 85bc7c5389
commit 1013f4069f

View File

@ -63,8 +63,8 @@ int reading_strings_and_storing_them_in_memory(link* pointer_to_start_of_chain){
} }
int analizing_string(char* pointer){ int analizing_string(char* pointer){
float number1, number2, result3; float number1, number2, result3;
char buffer_for_token[SIZE];
strcpy(buffer_for_token,pointer);
int counter=0; int counter=0;
char operant; char operant;
int i=0; int i=0;
@ -82,7 +82,7 @@ int analizing_string(char* pointer){
char delim[] =" +=-*/\n"; char delim[] =" +=-*/\n";
char *first_number_cucumber=strtok(pointer, delim); 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){