12.13.4 printf Extension Example

Here is an example showing how to define a printf handler function.
This program defines a data structure called a Widget and
defines the ‘%W’ conversion to print information about Widget *
arguments, including the pointer value and the name stored in the data
structure. The ‘%W’ conversion supports the minimum field width and
left-justification options, but ignores everything else.