I have a struct member that holds lots of string elements. What I want is to iterate the whole member of the struct and count only different elements (diff last names).
struct log {
char *last;
};
...
struct log *l
l->last = last_name; // loading *last member with data coming from last_name var
...
What would be a good way to compare and count unique elements currently on *last?
Any help will be appreciate it.