From 79e0d5633eccd12e6fda10f71daab50c033b4375 Mon Sep 17 00:00:00 2001 From: Kozar Date: Wed, 2 Oct 2024 19:00:52 +0000 Subject: [PATCH] Initializacia --- cv1/program.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index bd2350f..1ee33bb 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -13,22 +13,23 @@ struct pizza { char hacker_script(char l) { switch (l) { - case 'o': return '0'; - case 'i': return '1'; - case 'z': return '2'; - case 'e': return '3'; - case 'a': return '4'; - case 's': return '5'; - case 'b': return '6'; - case 't': return '7'; - case 'q': return '9'; - default: return tolower(l); + case '0': return 'o'; + case '1': return 'i'; + case '2': return 'z'; + case '3': return 'e'; + case '4': return 'a'; + case '5': return 's'; + case '6': return 'b'; + case '7': return 't'; + case '8': return 'b'; + case '9': return 'q'; + default: return l; } } void transform_to_hacker_script(const char *src, char *dest) { while (*src) { - *dest++ = hacker_script(tolower(*src++)); + *dest++ = hacker_script(*src++); } *dest = '\0'; }