I wrote: > This is more hairy than you might think. Because of the GCC attribute syntax. > > stdio.in.h does > > /* Don't break __attribute__((format(printf,M,N))). */ > # define printf __printf__ > > because there are not many symbols that can be used in place of 'printf'. > > Do you have an idea for doing this nicely?
#define printf(fmt,...) zprintf(fmt,__VA_ARGS__) This is good enough, because no one uses printf as a function pointer. Bruno