@ -79,6 +79,16 @@ bool everyCharacterIsDigit(char *string)
return onlyDigits;
}
bool isLetterOfAlphabet(char *string){
bool r = true;
for(int i=0;*(string+i)!='\0';++i){
if( !(*(string+i)>=65&&*(string+i)<=90) && !(*(string+i)>=97&&*(string+i)<=122)){
r = false;
break;
return r;
unsigned int toUnsignedInteger(char *ID)
{
@ -10,4 +10,5 @@ char *generateCheckString(unsigned int, char *);
unsigned int toUnsignedInteger(char *);
unsigned int power(unsigned int, unsigned int);
bool everyCharacterIsDigit(char *);
bool isLetterOfAlphabet(char *);
#endif