- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
int let_past(data *base, char *infix, char *post_infix) {
char *buffer;
int past_in_table_cons_or_value(data * table, char *str_tok);
int data_adress = 0;
int lng = 0;
int left_side = 0;
past_in_table_cons_or_value(base, &infix[0]);
buffer = strtok(&infix[1], " ");
for (; buffer != (char *)'\0';
post_infix[lng++] = ' ', buffer = strtok(NULL, " ")) {
if (isalnum(*buffer)) {
data_adress = past_in_table_cons_or_value(base, buffer);
sprintf(&post_infix[lng], "%d", data_adress);
lng += 2;
}
else {
post_infix[lng] = *buffer;
lng++;
}
}
post_infix[lng] = '\0';
left_side = search_in_table(base, &infix[0]);
return (base + left_side)->location;
}
int my_strcmp (const char *out, const char *in ){
for( ;*(in) , *(out) && *(in) == *(out); *out++,*in++ );
return *in <= *out ? *out > *in : -1 ;
}
Комментарии (0) RSS
Добавить комментарий