diff --git a/src/createCustomer.c b/src/createCustomer.c index d6226ee..e3a9920 100644 --- a/src/createCustomer.c +++ b/src/createCustomer.c @@ -31,10 +31,14 @@ void collectCustomerProperties() } if(inputTooLong){ errorMessage(-7); - }else{ + } + else{ *(instance.forename+letterCounter) = '\0'; letterCounter = 0; } + if(!isLetterOfAlphabet(instance.forename)){ + errorMessage(-10); + } printf("Enter surname (max. 15 letters):\n"); while(letterCounter