Get sizeof a void (*)() function pointer in C -


to aid precise memory allocation i'm doing in c, i'm trying sizeof function pointer function return type void takes no parameters.

however, when sizeof (void (*)()), generate compiler warning:

function declaration isn’t prototype [-wstrict-prototypes]

how size i'm looking for?

that old style function definition, missing argument list, add them:

sizeof( void(*)(void) ) 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -