Hiding Struct Members
问题 I know this question might have been asked before but I wanted to take my approach at it and get an opinion or possibly a better way to do it. I have three files a.h a.c and main.c Prototypes of functions regarding the struct will be in a.h while implementation will be in a.c and called from main.c the structure will be simple it can just look like this struct ctx{ int x; }; I want a.c to be able to manipulate the contents of the struct but prevent main from having any idea of what's inside.