telegrafista

This commit is contained in:
Maryna Kravtsova 2020-12-03 15:25:53 +01:00
parent 6f2d67a8e1
commit f93486a71a

View File

@ -67,6 +67,7 @@ void search(struct morsetree* root, char* decode){
}*/ }*/
if(decode[i] == ' ' || decode[i] == '\n' || decode[i] == '\0'){ if(decode[i] == ' ' || decode[i] == '\n' || decode[i] == '\0'){
if(i == strlen(decode)){ if(i == strlen(decode)){
printf("\n");
return; return;
} }
printf("%c", this->letter); printf("%c", this->letter);