Better way to forward declare typedef'd structures in C89?
-
08-07-2019 - |
Question
struct SomeStruct;
typedef struct SomeStruct SomeStruct;
The above works, but is there a simpler (or better) way?
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