> Anyone else have any favorite additions to printf?
%r for "remote" format. Lets you write your own routine to take
printf-like parameters. For example:
routine (parm, args)
{
printf ("The param is %d, caller printed %r", parm, &args);
}
would be called as, for example:
routine (x, "My printf prints %d and %d\n", 10, 20);