From 2d949666e075f502990f1b94ded78573c2e118b1 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Thu, 3 Dec 2020 15:21:15 +0100 Subject: [PATCH] telegrafista --- a5/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/a5/program.c b/a5/program.c index 48cede5..06fd4c2 100644 --- a/a5/program.c +++ b/a5/program.c @@ -60,7 +60,8 @@ void search(struct morsetree* root, char* decode){ int i = 0; for(i == 0; i <= strlen(decode); i++){ 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"); return; }