Browse Source

change local functions to external functions

remotes/origin/Input_Handling
Sophia Weber 11 months ago
parent
commit
3d9d2ac7bc
  1. 5
      src/inputHandling.c
  2. 4
      src/inputHandling.h

5
src/inputHandling.c

@ -5,11 +5,6 @@
char formulaBuffer[1000]; 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) { void input(char* formulaString, int length) {
deleteWhitespace(formulaString, length); deleteWhitespace(formulaString, length);

4
src/inputHandling.h

@ -17,5 +17,9 @@ double result;
extern void input(char* formulaString, int length); extern void input(char* formulaString, int length);
extern void showStruct(calc_op* formulaRef); 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 #endif // INPUTHANDLING_H
Loading…
Cancel
Save