From 8041bfe7ba8bff1dab0160befa79c4127663480e Mon Sep 17 00:00:00 2001 From: Tait Hoyem <44244401+TTWNO@users.noreply.github.com> Date: Sat, 6 Jul 2019 14:53:09 +0000 Subject: [PATCH] Fixing issue with indentation from vim editing. Now using emacs --- morse.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/morse.c b/morse.c index ef3d87b..f24b573 100644 --- a/morse.c +++ b/morse.c @@ -40,16 +40,16 @@ static const char* MORSE_ERROR = "........"; const char* char_to_morse(char letter){ const char* result_ptr = malloc(sizeof(char)*MAX_MORSE_LENGTH); bool result_set = false; - for (int i = 0; i < NUM_OF_SYMBOLS; i++){ - if (letter == SYMBOLS[i]){ - result_ptr = MORSE[i]; - result_set = true; + for (int i = 0; i < NUM_OF_SYMBOLS; i++){ + if (letter == SYMBOLS[i]){ + result_ptr = MORSE[i]; + result_set = true; } - } + } if (!result_set){ result_ptr = MORSE_ERROR; } - return result_ptr; + return result_ptr; } char* string_to_morse(char* string){