|
@ -61,7 +61,6 @@ bool loginCustomer(customer_t *c) |
|
|
bool foundCustomerEntryInFile = false; |
|
|
bool foundCustomerEntryInFile = false; |
|
|
unsigned int IDAsNumber = toUnsignedInteger(c->IDAsString); |
|
|
unsigned int IDAsNumber = toUnsignedInteger(c->IDAsString); |
|
|
char *searchForThisString = generateCheckString(IDAsNumber,c->password); |
|
|
char *searchForThisString = generateCheckString(IDAsNumber,c->password); |
|
|
printf("Searching for: %s\n", searchForThisString); |
|
|
|
|
|
char *lineFromCustomerFile = calloc(40,sizeof(char)); |
|
|
char *lineFromCustomerFile = calloc(40,sizeof(char)); |
|
|
FILE *readCustomerFile = fopen("CustomerData.txt", "r"); |
|
|
FILE *readCustomerFile = fopen("CustomerData.txt", "r"); |
|
|
if(readCustomerFile==NULL){ |
|
|
if(readCustomerFile==NULL){ |
|
|