I've been looking through the source for the calcurse program, and I keep coming across code that looks like this:
i->next
...which comes from a structure that looks a bit like this:
struct example_s
{
struct example_s *next;
...
}
I've been trying to find out what this does exactly. Looking at various C pages, it has something to do with a tree node? Is the C++ equivalent the for_each for a vector (assuming you put the structure/class into that vector)? I've tried to make a small program that shows me what this does, but, to no avail. Would someone please provide a small example of what the *next operator does? Thank you.