Path: utzoo!utgpu!water!watmath!clyde!bellcore!tness7!killer!pollux!dalsqnt!uunet!nuchat!sugar!ficc!peter
From: peter@ficc.UUCP (Peter da Silva)
Newsgroups: comp.lang.c
Subject: Re: "%#s"?
Summary: While we're adding things to printf...
Message-ID: <849@.UUCP>
Date: 2 Jun 88 13:59:13 GMT
References:  <1988May28.222450.2680@utzoo.uucp> <19166@watmath.waterloo.edu>
Organization: SCADA
Lines: 16

Once upon a time I implemented a printf in Fortran to make it easier to
convert some 'C' stuff to ratfor. I included a format that is rather
handy, based on Fortran 'T' format:

	%t

What %t does is move around in the output. %10t means move to location
10. %-10t means move back 10 spaces. %+10t means move forward 10 spaces.
%*t means move to the location specified by the next argument.

For generating table output with complex elements it was wonderful:

	printf("%s.%s%32t%-10d%s\n", filename, ext, size, owner);
-- 
-- Peter da Silva, Ferranti International Controls Corporation.
-- Phone: 713-274-5180. Remote UUCP: uunet!nuchat!sugar!peter.