Hello,
I would like to check whether a driver's name is listed under available drivers in a drivers' queue, using the following function:
whereas:Code:int isDriverInQueue(Driver * driversQueue, char* name);
What I am not sure of is how to actually move within the queue to the next driver? Is that implemented simply by doing next++, where next is as defined above?Code:typedef struct driver{ char name[101]; int priority; struct driver* next; }Driver; typedef struct taxiSystem{ Driver * driversQueue; Order * ordersQueue; int numOrder; }TaxiSystem;