about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDaniel Santos <dacs.git@brilhante.top>2022-03-17 20:26:42 +0000
committerDaniel Santos <dacs.git@brilhante.top>2022-03-17 20:26:42 +0000
commit8ffc581d8f59df6554c2d21f6bc7588ea3f35ff8 (patch)
treea479d10bd4b9470c3f5aa2b7c6415f683f1281fb
parent0f85f6e0163bc20e149d3e75b05b4c17ca3a1ac4 (diff)
downloadnumericx-c-8ffc581d8f59df6554c2d21f6bc7588ea3f35ff8.tar.gz
remove print_numeral()
 * remove print_numeral() from numericx.c

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
-rw-r--r--numericx.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/numericx.c b/numericx.c
index f6f3b31..be20422 100644
--- a/numericx.c
+++ b/numericx.c
@@ -170,38 +170,6 @@ is_the_same(numeral_ptr* numeral, char* number_arg)
 }
 
 /**
- * @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.
  *
  * @param string - string to be reversed.