modification to /usr/src/lib/lib

willcox at ccvaxa.UUCP willcox at ccvaxa.UUCP
Sat Dec 15 00:50:00 AEST 1984


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



More information about the Comp.unix.wizards mailing list