diff --git a/src/userinput.c b/src/userinput.c index 554b296..9a3e85f 100644 --- a/src/userinput.c +++ b/src/userinput.c @@ -7,6 +7,15 @@ #include #include +#define LD(name)\ + long double name##ldvalue;\ + long double *name##ld = NULL;\ + if (name != NULL) {\ + name##ldvalue = *name;\ + name##ld = &name##ldvalue;\ + } + + void trimLeft(char *input) { size_t length = strlen(input); int firstIndex = 0;