Skip to contentSkip to conversation

hi

DISCUSSION raja 2 participants 2 messages Jul 11, 2005

lore
Share & tools
lore

raja

author
#0 lore raw

hi,
How can i get the list of the arguments in a function.Is there any
possible way to get the list?
thanking you,
raja.V

#1 lore raw
Quoted 3 lines · raja

hi,
How can i get the list of the arguments in a function.Is there any
possible way to get the list?

No, there is not. At least there is no easy way. What you are looking for is the functionality provided by the nm and objdump utilities (see binutils). They examine certain sections of executables and object files to obtain information about symbols and the like. Unfortunately, there is no API to make use of it. Modern "higher level" languages like Java and C# (and .NET in general) provide mechanisms collectively known as reflection that allow users to query type information, call methods and constructors dynamically, etc. at run-time. The C programming language does not know such thing.

Kind Regards

\Steve

--

Steve Graegert <[email protected]> || <http://www.technologies.de/~sg/>
Independent Software Consultant {C/C++ && Java && .NET}
Mobile: +49 (176) 21 24 88 69
Office: +49 (9131) 71 26 40 9