From 25b42cd0c06a5d25a91576fb4b64d5f7cc387c94 Mon Sep 17 00:00:00 2001 From: fdai7207 Date: Sun, 5 Feb 2023 06:52:53 +0100 Subject: [PATCH] refactoring: changed some variabales names in createEmployeeAccount.c for better readability. --- src/createEmployeeAccount.c | 28 +++++++++++++++------------- src/createEmployeeAccount.h | 2 +- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/createEmployeeAccount.c b/src/createEmployeeAccount.c index 8532456..ab4f38a 100644 --- a/src/createEmployeeAccount.c +++ b/src/createEmployeeAccount.c @@ -17,18 +17,18 @@ int StringLengthCounter(char* string) } -bool isValidEmployeeID(char* employeeId, int maximumLength) +bool isValidEmployeeID(const char* employeeId, int maximumStringLength) { int employeeIdLength = strlen(employeeId); - int i; - for(i=0;i #include -bool isValidEmployeeID(char* employee, int maximumLength); +bool isValidEmployeeID(const char* employee, int maximumLength); bool createNewEmployee(char* employeeId, char* employeePassword); int StringLengthCounter(char* string);