as you can see i want to typedef fptr to be ptr to function takingCode:#include <stdio.h> typedef ( void ( )( int ) ) fptr; /* this doesn't work */ void f( int n ); void ( *foo( void ( func )( int ) ) )( int ); /*void ( *foo( void ( func )( int ) ) )( int );*/ int main( void ) { f( 3 ); /*foo( &f );*/ foo( f ); ( foo( f ) )( 9 ); return 0; } void f( int n ) { printf( "n = %d\n", n ); return; } void ( *foo( void ( func )( int ) ) )( int ) { //( *func )( 6 ); func( 6 ); return func; } /*void ( *foo( void ( func )( int ) ) )( int ) { func( 6 ); return func; }*/
one int argument and returning void.
The rest of the code is just to give you clue of what i'm trying to do
thanks,
trk