From be3900434c431d1a267af59df7cf3d54657c7fd7 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Mon, 6 Mar 2023 15:57:39 +0100 Subject: [PATCH] fix format to non decimal values on storage and stack --- format.c | 7 +------ format.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/format.c b/format.c index e5be2df..60cb1d4 100644 --- a/format.c +++ b/format.c @@ -76,11 +76,6 @@ void set_base (int in, int out) _obase = out; } -int is_input_decimal () -{ - return (_ibase == 10); -} - char *show_base () { static char str[16] = {0}; @@ -133,7 +128,7 @@ double printl (double value) if (_obase == 10) { printf (_minform ? _minform : DEFAULT_MINFORM, value); } else { - printf ("%s%s", (_prompt) ? _prompt : DEFAULT_PROMPT, mbitoa ((unsigned int)value)); + printf ("%s", mbitoa ((unsigned int)value)); } return value; } diff --git a/format.h b/format.h index b18b92d..3a376a0 100644 --- a/format.h +++ b/format.h @@ -13,7 +13,6 @@ void set_format (); void free_format (); void set_base (int in, int out); -int is_input_decimal (); char *show_base (); int get_ibase (); -- 2.30.2