A
andreyvul
Suppose I have code like this:
#include <stdio.h>
int printf(const char *fmt, ...) {
puts("Hello, world\n");
}
When compiling, I get an error that printf was previously defined in
stdio.h (and it's correct).
However, there are a lot of things that I need in stdio.h so I can't
uninclude it.
How do I tell the compiler to use the new printf without removing the
#include?
#include <stdio.h>
int printf(const char *fmt, ...) {
puts("Hello, world\n");
}
When compiling, I get an error that printf was previously defined in
stdio.h (and it's correct).
However, there are a lot of things that I need in stdio.h so I can't
uninclude it.
How do I tell the compiler to use the new printf without removing the
#include?