I create a List using:
static ListType List_Session = 0;
List_Session = ListCreate (sizeof(char[20]));
Then I load this list with strings named as such:
SESSION T1
SESSION T3
SESSION Q1
SESSION Q1
Some of the names are duplicated which I am trying to use ListRemoveDuplicates (List_Session , 0); to remove them, but it is not working. I am not sure, but I think the issue is with the compare fucntion that is being used. 0 just uses the memcmp() by default and I believe I need to pass CStringCompare() or similar funtion in its place, but I cannot figure out how and I cannot find an example of using ListRemoveDuplicates and CStringCompare.
Any help on how to format and pass the correct arguements would be appreciated.