> void test_printf(const char *fmt, ...) __attribute__((__format__ (printf, 1, > 2))); > > See: > > http://clang.llvm.org/docs/LanguageExtensions.html#format-string-checking > Thank you everyone who responded. Worked perfectly.