Ok, I was given a function to fill out for a programming assignment.
The function header is as follows:
I have never seen syntax like this before, what does it mean?Code:insert_ready(pcb) PCB* pcb; { }
Normally all the functions I have written/seen are like this.
The reason I am asking is when I call the function insert_ready in another function I am getting an error.Code:insert_ready(PCB * pcb){ }
line 164: identifier redeclared: insert_ready
current : function() returning void
previous: function() returning int : "cpu.c", line 133
When I am calling the function i am calling it as:
Any ideas?Code:PCB* preempted; // was declared in the calling function insert_ready(preempted);
Thank you.