As per my understanding following is the syntax for function pointer using typedef.
I saw typedef to function definition similar to below.Code:typedef void (*fp)(int arg);
Is it array of function pointers and the typedef declaration in the above code snippet is a function pointer or different.Code:typedef int func(int arg); func *fa[] = { [0] = f1, [1] = f2, [2] = f3, [3] = f4, [4] = f5, };
I got the dobht after seeing the seeing the declarations @
git.denx.de Git - u-boot.git/blob - common/cmd_bootm.c
git.denx.de Git - u-boot.git/blob - common/cmd_bootm.c