From 3d9d2ac7bc1142884d72fd217951fc9203ef3d53 Mon Sep 17 00:00:00 2001 From: Sophia Weber Date: Sun, 28 Jan 2024 12:34:58 +0100 Subject: [PATCH] change local functions to external functions --- src/inputHandling.c | 5 ----- src/inputHandling.h | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/inputHandling.c b/src/inputHandling.c index 58e692b..cf4893a 100644 --- a/src/inputHandling.c +++ b/src/inputHandling.c @@ -5,11 +5,6 @@ char formulaBuffer[1000]; -void deleteWhitespace(char* formulaString, int length); -op readFunction(char* formulaString, int length); -char* getNumbers(char* formulaString, int length, calc_op* formulaRef); -void showStruct(calc_op* formulaRef); - void input(char* formulaString, int length) { deleteWhitespace(formulaString, length); diff --git a/src/inputHandling.h b/src/inputHandling.h index 337096e..4387a8e 100644 --- a/src/inputHandling.h +++ b/src/inputHandling.h @@ -17,5 +17,9 @@ double result; extern void input(char* formulaString, int length); extern void showStruct(calc_op* formulaRef); +extern void deleteWhitespace(char* formulaString, int length); +extern op readFunction(char* formulaString, int length); +extern char* getNumbers(char* formulaString, int length, calc_op* formulaRef); +extern void showStruct(calc_op* formulaRef); #endif // INPUTHANDLING_H