4.2 sprintf too painful?

Jim Reno reno at bunker.UUCP
Sat Feb 9 00:27:31 AEST 1985


> Another pointer along those lines:
> 
> Don't use %D, %O, %X, and the like.  Use %ld, %lo, %lx instead.

Another case to watch out for here: I got caught on a piece of code
that looked something like:
	printf("...%D%s..."...);
which intended, of course, to print out a value immediately followed
by a string. Unfortunately the source was being controlled by SCCS, which
turned the %D% into a date...



More information about the Comp.unix.wizards mailing list