Browse Source

refactoring: Changed name of function charIsUp to characterIsUpperCase() and inner variable in order to increase readability.

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

5
src/helperFunctions.c

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

2
src/helperFunctions.h

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