I'm writing some C code using a library but the documentation is outdated. So if I need to find all fields available for the "super_struct
" type for example, how would I go about finding that out without digging through hundreds of header files whilst mentally keeping track of the preprocessor?
GCC seems to know pretty immediately what fields are available for the struct as it's the one giving me the error. So there must be a way for gcc to spit out the actual typedef of the struct.
Something like gcc main.c --printsymbol=super_struct
would be great.