Struggling my nuts of with this one boys. <Any of the dudley crew out there on Stage4 Prog2, you'll know what I'm talking about>.
I have creaated three structures of varied length with a union.
After finding the number of records on a file, I have used the malloc function to set aside a 'chunk' of memory and then wrote the records into this 'chunk'. My problem is this:-
Using the step through process on my compiler, I've checked that each record has been read sucessfully. After this I've reset the pointer to malloc to zero and tried - in vain I might add - to sort the file alphabetically using the qsort function but to no avail.
A point in the right direction wouldn't go amiss and would be gratefully recieved
<FILE ATTACHED>