Search code examples
cprogramming-languagesreverse-engineeringstructure

Finding the elements in a structure in C language


Is it possible to determine the elements(name & datatype) in a structure(C language) in a library ? If yes, how to do it in C language ? If C language does not support it, Is it possible to get the structure elements by other tricks or is there any tool for it?


Solution

  • No, it isn't possible. C has no inbuilt reflection-style support.