Hi,
I'm a little perplexed about the following...
I've seen (and been able to do and work-with) casts along
the lines of
and all is well..
However, if I have function prototypes
and I try to do the following...
the compiler compains (of course I've defined the functions
elsewhere).
It works fine if I change void** to char**. Why can't I
cast the types in this fashion when they are arguments to
functions?
Thanks!
perplexed -
dora c.
I'm a little perplexed about the following...
I've seen (and been able to do and work-with) casts along
the lines of
Code:
char** ppcVar;
void** ppvVar;
...
ppvVar = ppcVar;
However, if I have function prototypes
Code:
void function( char*, char** );
void function2( void (*)( void*, void** ) );
and I try to do the following...
Code:
function2( (void (*)( void*, void** )) function );
elsewhere).
It works fine if I change void** to char**. Why can't I
cast the types in this fashion when they are arguments to
functions?
Thanks!
perplexed -
dora c.