From 556d7c03e8876eb440c9033ec9e9c533349deaf8 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 3 Sep 2021 12:44:19 +1000 Subject: Add a Process_printPercentage helper routine Replace several open-coded variants of percentage formatting. This function has been ported from Hishams old 'next' branch. --- Process.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Process.h') diff --git a/Process.h b/Process.h index c652fae9..1ba36de3 100644 --- a/Process.h +++ b/Process.h @@ -356,6 +356,8 @@ void Process_fillStarttimeBuffer(Process* this); void Process_printLeftAlignedField(RichString* str, int attr, const char* content, unsigned int width); +void Process_printPercentage(float val, char* buffer, int n, int* attr); + void Process_display(const Object* cast, RichString* out); void Process_done(Process* this); -- cgit v1.2.3