#define getc(stream) ...
("Free-standing implementations" like kernels have a lot of freedom to muck with the standard library. But that's not really relevant.)
#define getc fgetc_or_similar
#include <stdio.h> #undef getc int main(void) { getc(stdin); return 0; }
("Free-standing implementations" like kernels have a lot of freedom to muck with the standard library. But that's not really relevant.)