From 8ffc581d8f59df6554c2d21f6bc7588ea3f35ff8 Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Thu, 17 Mar 2022 20:26:42 +0000 Subject: remove print_numeral() * remove print_numeral() from numericx.c Signed-off-by: Daniel Santos --- numericx.c | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/numericx.c b/numericx.c index f6f3b31..be20422 100644 --- a/numericx.c +++ b/numericx.c @@ -169,38 +169,6 @@ is_the_same(numeral_ptr* numeral, char* number_arg) return (*number_arg == '\0') ? true : false; } -/** - * @brief Print numeral - * - * Prints to standard output numeral_ptr ('numeral'). - * - * @param numeral - numeral_ptr to print. - * @param to_units_on_the_end - define if printing a number with units on the end (on the right) - */ -static void -print_numeral(numeral_ptr* numeral, bool to_units_on_the_end) -{ - if( to_units_on_the_end ) - { - while( !(numeral->next == NULL) ) - numeral = numeral->next; - - while( !(numeral == NULL) ) - { - printf("%c", *(numeral->symbol)); - numeral = numeral->previous; - } - } - else - { - while( !(numeral == NULL) ) - { - printf("%c", *(numeral->symbol)); - numeral = numeral->next; - } - } -} - /** * @brief Reverse a string. * -- cgit 1.4.1-2-gfad0