Ahh thanks that got it to compile. Do i need to add anything to the comp function, such as comparison between int A and int B? Because when I run my program my output is this and it doesn't seem to be comparing the integers :s
id: Process194
Qaunta: 68
Priority: 17
sorted priority: 0
id: Process195
Qaunta: 127
Priority: 7
sorted priority: 0
id: Process196
Qaunta: 6
Priority: 17
sorted priority: 0
id: Process197
Qaunta: 103
Priority: 18
sorted priority: 0
id: Process198
Qaunta: 188
Priority: 3
sorted priority: 0
As you can see all the priority that was suppose to be sorted by qsort returns 0's and not a list from 0 - 20