Specifier Description
%d Signed decimal string.
%u Unsigned decimal string.
%i Signed decimal string.
%x Unsigned hexadecimal string.
%c Character format specifier.
%s String format specifier.
%f Signed decimal string of the form xx.yyy.
%p Formats a pointer to an address.
%n Number of bytes written so far.
%% Just inserts %.

Table 1: Common specifiers for format functions.

Back to Article