print format

Andrew Koenig ark at alice.UUCP
Sat Aug 4 00:17:23 AEST 1990


In article <1990Aug2.162651.8083 at uunet!unhd>, rgd at uunet!unhd (Roger G Desroches II) writes:

> 		printf("%[format]s\n",array[i]);
> 			     ^^^^^^^^
> 				 this is what I want to do.

Do it this way:

	printf("%*s\n", format, array[i]);
-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.lang.c mailing list