Ok, I'm working with using member functions in structures in C, which I've never done before, and I'm stuck. Here's the code:
typedef struct Node
struct Node* next;
typedef struct stack
void push(char info,node_ptr head)
char pop(node_ptr head)
Now my problem is that I don't want to have to reference a node as a variable to push and pop, I want to use the head of the stack as the only node they will modify. How would I go about doing this?