A weird C declaration
Hi,
what we have here is a simple pointer to its own type and for the compiler, all it has to do is allocate the size required to hold an address(4 bytes), however if you would have
typedef struct QFreeBlockTag QFreeBlock;
struct QFreeBlockTag {
QFreeBlock next;
};
the comiler would throw an error coz the comiler does not know how much to allocate, but for the pointer case it knows that all it has to do is allocate so much to hold the address.
hope that cleared it up.