R
RolfK
Guest
Dear ALL,
I need to understand how I can print out a struct.
Assume ebb1 is an existing struct with values from which I do not know
its slot names.
Here is my (not working ) attempt.
Any idea how to make it running ?
foreach( (slot value) ebb1->?
printf("%s\n" slot))
/* The statement below can not work as slot is not treated as a
variable.
How to make it right ? */
printf("%L\n" ebb1->slot);
)
I need to understand how I can print out a struct.
Assume ebb1 is an existing struct with values from which I do not know
its slot names.
Here is my (not working ) attempt.
Any idea how to make it running ?
foreach( (slot value) ebb1->?
printf("%s\n" slot))
/* The statement below can not work as slot is not treated as a
variable.
How to make it right ? */
printf("%L\n" ebb1->slot);
)