"k3rb" <> wrote:
# hi everyone sorry for the stupid question but I can't figure it out how
# I can get elements of a structure?
You can't do it within the language: C doesn't support that kind of introspection.
# example I want to get all the elements in the structure which I don't
# know?
# I am trying to find out where are inode_t, FILE and DIR structures but
# I can find them?
# thanks for your help in advanced
Depends on the implementation and operating system.
You might be able to do something like
echo '#include <stdio.h>' > /tmp/x.c
cc -E /tmp/x.c >x.i
grep -B 100 '} FILE' x.i
--
SM Ryan
http://www.rawbw.com/~wyrmwif/
I love the smell of commerce in the morning.