What is the effect of casting a function pointer void?
问题 So I'm trying to write a buffering library for the 64th time and I'm starting get into some pretty advanced stuff. Thought I'd ask for some proffesional input on this. In my first header file I have this: typedef struct StdBuffer { void* address; } StdBuffer; extern void StdBufferClear(StdBuffer); In another header file that #includes the first header file I have this: typedef struct CharBuffer { char* address; } CharBuffer; void (*CharBufferClear)(CharBuffer) = (void*) StdBufferClear; Will