From c6141c0236f4589d254c7e21f959c99fcd227d10 Mon Sep 17 00:00:00 2001 From: Eric Bagus Date: Thu, 8 Feb 2024 21:00:55 +0100 Subject: [PATCH] Implemented template in output methods --- src/operationHandler.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/operationHandler.c b/src/operationHandler.c index 122cb8b..df85a49 100644 --- a/src/operationHandler.c +++ b/src/operationHandler.c @@ -98,18 +98,22 @@ int extractFirstNumber(char* str) { } void outputInteger(int output) { + outputTemplate(); printf("Result: %d", output); } void outputLong(long output) { + outputTemplate(); printf("Result: %ld", output); } void outputDouble(double output) { + outputTemplate(); printf("Result: %lf", output); } void outputFloat(float output) { + outputTemplate(); printf("Result: %f", output); }