telegrafista

This commit is contained in:
Maryna Kravtsova 2020-12-03 15:21:15 +01:00
parent d5173645b0
commit 2d949666e0

View File

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