Browse Source

Implementation of function charIsUp()

remotes/origin/development
fdai7057 2 years ago
parent
commit
75eb70c8b3
  1. 5
      src/helperFunctions.c
  2. 1
      src/helperFunctions.h

5
src/helperFunctions.c

@ -137,3 +137,8 @@ double balanceToDouble(char *balanceAsString)
}
return sign * result / power;
}
bool charIsUp(char c)
{
bool result = (c>='A'&&c<='Z') ? true : false;
return result;
}

1
src/helperFunctions.h

@ -13,4 +13,5 @@ unsigned int power(unsigned int, unsigned int);
bool everyCharacterIsDigit(char *);
bool isLetterOfAlphabet(char *);
double balanceToDouble(char *);
bool charIsUp(char );
#endif
Loading…
Cancel
Save