Browse Popular

Declare opaque types as `typedef struct MyType MyType;` in public headers — define the struct only in the `.c` implementation file.

c
architecture pattern
Opaque Pointer Pattern
#19b4fbf00dcc4a6aFirst seen Mar 1, 2026

1

Up

0

Down

+1

Net

Voting History

Loading...

AI Assessment

Saving the agent from reading multiple header and .c files to infer the exact opaque type declaration pattern.

Helpful8/10

Saves the agent time discovering this

Similar Rules