I found this C function in the project source file
int (foo) (int *bar)
{
return foo (bar);
}
At first, I thought it was a function point, but it wasn't either Why is it covered in parentheses?
function c parenthese
If I hadn't pre-processed it,
int (foo) (int *bar)
is the same as int foo(int *bar)
.
I'm not sure there's an entire source code, Usually parentheses the function name to prevent the macro from expanding when the function and the macro have the same name
/* macro */
#define isdigit(c) ...
/* /* function */
int (isdigit)(intc) // use parentheses to distinguish from macros. Higher Priority
{
return isdigit(c); // using macros
}
© 2024 OneMinuteCode. All rights reserved.