What exactly is the point of a struct definition like this:
Hey guys,
Was hoping to know what exactly the point of the following struct definition is:
Code:
typedef struct {
Cursor cursor;
} Cur;
I'm going through the code within one of the source files for dwm (specifically drw.h). I don't really understand what exactly this achieves. I understand the concept of structs, but perhaps not so much so that I understand the significance of this declaration in favor of something like in this instance.
Is anyone able to tell me the reasoning behind this?