From 9e0d1cece91a28d2a780381d9b472c1283a04264 Mon Sep 17 00:00:00 2001 From: fdai7514 Date: Sun, 5 Feb 2023 23:23:02 +0100 Subject: [PATCH] refactoring: change variable names and format code in calculatorSubtract.c and calculatorSubtract.h --- src/calculatorSubtract.c | 9 ++++++++- src/calculatorSubtract.h | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/calculatorSubtract.c b/src/calculatorSubtract.c index a2a54f6..d460458 100644 --- a/src/calculatorSubtract.c +++ b/src/calculatorSubtract.c @@ -1,5 +1,12 @@ #include "calculatorSubtract.h" -float calculatorSubtract(float x, float y){return x-y;} +// Note: +/* This Function may or may not be implemented in actual program, even if it is merged to the main branch. + If it is temporarily not included in the main Program, then this has a role in future Development of the Project */ + +float calculatorSubtract (float num1, float num2) +{ + return num1 - num2; +} diff --git a/src/calculatorSubtract.h b/src/calculatorSubtract.h index 120b8b2..156eaa9 100644 --- a/src/calculatorSubtract.h +++ b/src/calculatorSubtract.h @@ -4,7 +4,7 @@ #include #include -float calculatorSubtract(float x, float y); +float calculatorSubtract(float num1, float num2);