telegrafista

This commit is contained in:
Maryna Kravtsova 2020-12-03 15:17:47 +01:00
parent f0160ca1b5
commit d5173645b0

View File

@ -59,7 +59,8 @@ void search(struct morsetree* root, char* decode){
struct morsetree* this = root;
int i = 0;
for(i == 0; i <= strlen(decode); i++){
if(i == strlen(decode) && decode[strlen(decode)-1] == ' '){
if((i == strlen(decode) && decode[strlen(decode)-1] == ' ') ||
(i == strlen(decode)-1 && decode[strlen(decode)-2] == '/')){
printf("\n");
return;
}