remove print_numeral()
* remove print_numeral() from numericx.c Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
This commit is contained in:
parent
0f85f6e016
commit
8ffc581d8f
32
numericx.c
32
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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue