C
call_me_anything
I have different kind of data structures in different applications.
The data structures are big and complex and I would like to print the
members of each struct.
Can we write a generic piece of code which will
automatically find out the type of struct elements and
print them (indented manner ?) if they are primitive types like
int, float or char* ? else it will recurse into the composite data
type.
This is to avoid writing such functions for each struct in each
application.
Sounds something close to gdb ?
The data structures are big and complex and I would like to print the
members of each struct.
Can we write a generic piece of code which will
automatically find out the type of struct elements and
print them (indented manner ?) if they are primitive types like
int, float or char* ? else it will recurse into the composite data
type.
This is to avoid writing such functions for each struct in each
application.
Sounds something close to gdb ?