Hello,
Does anybody know how to use qsort or any other ansi c sorting function with singly linked list?
For example consider the following structure.
typedef struct message {
int messageId;
char * messageText;
struct message * next;
} message;
Couple of days ago I posted some questions about my unsuccessful attempt to implement my own sorting regime but I couldn't get help with it.
So please don't treat this thread as duplicate.
If you are interested in helping with my implementation got to this thread
Thank you,
George