Question

struct SomeStruct;
typedef struct SomeStruct SomeStruct;

The above works, but is there a simpler (or better) way?

Was it helpful?

Solution

Turns out I don't need the first line. The second line works by itself.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top