telegrafista
This commit is contained in:
parent
fd4a72cda6
commit
6f2d67a8e1
@ -65,7 +65,10 @@ void search(struct morsetree* root, char* decode){
|
||||
printf("\n");
|
||||
return;
|
||||
}*/
|
||||
if(decode[i+1] == ' ' || decode[i+1] == '\n' || decode[i+1] == '\0'){
|
||||
if(decode[i] == ' ' || decode[i] == '\n' || decode[i] == '\0'){
|
||||
if(i == strlen(decode)){
|
||||
return;
|
||||
}
|
||||
printf("%c", this->letter);
|
||||
this = root;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user