S
Schraalhans Keukenmeester
I have some C functions (with variable length argument lists) that use
void pointers as arguments.
Is there a way to determine at runtime what type of parameter is
actually passed on to the function? PHP and my oldskool turbopascal
provide a typeof() function, but my C compiler (gcc 3.4.1) does not seem
to provide this function. Perhaps someone crafted a library with some
smart code able to inspect the variable passed to a certain function?
I am aware if such a function exists it may well be platform/compiler
dependent. My primary interest lies with Linux on Intel platforms, C
compilers 3.x or 4.x
Thanks in advance
Sh.
void pointers as arguments.
Is there a way to determine at runtime what type of parameter is
actually passed on to the function? PHP and my oldskool turbopascal
provide a typeof() function, but my C compiler (gcc 3.4.1) does not seem
to provide this function. Perhaps someone crafted a library with some
smart code able to inspect the variable passed to a certain function?
I am aware if such a function exists it may well be platform/compiler
dependent. My primary interest lies with Linux on Intel platforms, C
compilers 3.x or 4.x
Thanks in advance
Sh.