Hi all:

There are two function declarations in the header file:

void sqEnqueue(const char *s);
char *sqDequeue(); (no input arguments)

Those function declarations can NOT be altered.

I created a linked list in this sqEnqueue function, which has the a "first" and a "last" at the head and the end of the linked list.

In the function char *sqDequeue(): I am asked to delete the very first element of the linked list, e.g. "first". But I am not sure how to implement this idea, since all the elements of the linked list created in the sqEnqueue function are not visible to this *sqDequeue () function.

Can any one help me out please?


you need to make the linked list global so that it is visible to all other functions.