From b5fbf7414eec2c02a46c57824df27d6da029a043 Mon Sep 17 00:00:00 2001 From: Kozar Date: Wed, 2 Oct 2024 17:27:29 +0000 Subject: [PATCH] Initializacia --- cv1/program.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cv1/program.c b/cv1/program.c index 6cf9a27..86ab3b1 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -28,7 +28,12 @@ char hacker_script(char l) { void transform_to_hacker_script(const char *src, char *dest) { while (*src) { - *dest++ = hacker_script(*src++); + if (isupper(*src)) { + *dest++ = tolower(*src); + } else { + *dest++ = hacker_script(*src); + } + src++; } *dest = '\0'; }