>You can't typedef an array type, I believe.
Sure you can. You can typedef pretty much anything:
Code:
#include <stdio.h>
typedef int i10[10];
int main ( void )
{
i10 a;
int i;
for ( i = 0; i < 10; i++ )
a[i] = i;
for ( i = 9; i >= 0; i-- )
printf ( "%d\n", a[i] );
return 0;
}
>why do i get tis error message on typedef.
Because Bloggs is the name of the typedef, not FTR. Your compiler doesn't know how to parse FTR. Try this instead:
Code:
typedef void (*(*Bloggs)[10])(int **);
Bloggs fred(int *, const char *);