I am writing a program that creates a textfile that stores records. Each record is storing the following structure :
I need to create a function that checks the string length of the 'id' of structure for a given record number RecNum by the user.Code:typedef struct Client { char id[10]; char name[25]; char surname[25]; } Client;
If the string length is equal to 0 , it means that the record is available for booking , and the program must return the word 'Free' , else it must return the word 'Taken'.
Can someone help me please?