Browse Source

implemented LD macro

remotes/origin/userinput
TheUltimateOptimist 11 months ago
parent
commit
d2a2ce7ab0
  1. 9
      src/userinput.c

9
src/userinput.c

@ -7,6 +7,15 @@
#include <math.h> #include <math.h>
#include <stdbool.h> #include <stdbool.h>
#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) { void trimLeft(char *input) {
size_t length = strlen(input); size_t length = strlen(input);
int firstIndex = 0; int firstIndex = 0;

Loading…
Cancel
Save