diff options
-rw-r--r-- | numericx.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/numericx.c b/numericx.c index 2684ee4..44cd648 100644 --- a/numericx.c +++ b/numericx.c @@ -161,8 +161,6 @@ print_numeral(numeral_ptr* numeral) numeral = numeral->next; } } - - printf("\n"); } void @@ -245,32 +243,34 @@ main(int argc, char* argv[]) while( !is_the_same(counting, number) ) { if(DEBUG) - { - puts("----"); print_numeral(result); - } + if( TO_INFINITE_BASE ) increment(result, to_first, to_last, (to_first + 1)); else increment(result, to_first, to_last, to_first); if(DEBUG) + { + printf(" | "); print_numeral(counting); + printf("\n"); + } increment(counting, from_first, from_last, from_first); } - if(DEBUG) - puts("----"); /* print */ if(DEBUG) { - printf("counting: "); + print_numeral(result); + printf(" | "); print_numeral(counting); - printf("result: "); + printf("\n"); } print_numeral(result); + printf("\n"); return EXIT_SUCCESS; } |