[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
c macro
hi
I'm tring to make any on that uses printf to
use sprintf instead
somthing like:
#ifdef LINUX
#define printf(...) {sprintf(s,...);do_print(s);}
#endif
but this does not pass the c preprocessor.
does anyone know how to do that either in macro or
in any other way (other than changing every printf manually/via script)
thanks
erez.
- Follow-Ups:
- Re: c macro
- From: Evgeny Stambulchik <fnevgeny@plasma-gate.weizmann.ac.il>