[net.unix-wizards] modification to /usr/src/lib/lib

willcox@ccvaxa.UUCP (12/14/84)

> 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);

gwyn@brl-tgr.ARPA (12/19/84)

> %r for "remote" format.

I thought this was not necessarily implementable on some systems.