Interface __PRINTF_ATTR__

Preprocessor macro expanding to a type attribute

#include <SYS/TYPES.H>

void __PRINTF_ATTR__(a,b) function(args...);

Description

This macro expands to a compiler-specific attribute telling that the function processes a printf-like format string.

It advises the compiler to print a warning if argument types do not match "%" strings in the format string.

Arguments

Implementation note

When using the gcc compiler, this macro expands to __attribute__((__format__(__printf__(a,b)))).

See also

__SCANF_ATTR__