diff --git a/src/helperFunctions.c b/src/helperFunctions.c index c3b2513..2fd5249 100644 --- a/src/helperFunctions.c +++ b/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; +} diff --git a/src/helperFunctions.h b/src/helperFunctions.h index 9656ab7..ba68d57 100644 --- a/src/helperFunctions.h +++ b/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