problem with scanf and sccs conflict in phantasia func0.c

Guy Harris guy at rlgvax.UUCP
Fri Oct 26 17:08:28 AEST 1984


> For those of you that place sources under sccs control, note that
> in a scanf string in func0.c (there is only one which causes a problem)
> that contains the following:
> 
> 	%F%F%F%F%F%....
> 
> Note that sccs will expand the %F% into something undesireable!

Also note that %D in "printf" and "scanf" will also confuse SCCS.  Furthermore,
it will greatly upset the System III/System V version of "printf", which
says "%X" means "hex with capital A-F" and *only* allows the "l" prefix to
indicate a long argument.

Moral: Don't use %D or %F.  %ld and %lf will do just as well, and won't
break SCCS or fail on USDL systems.

	Guy Harris
	{seismo,ihnp4,allegra}!rlgvax!guy



More information about the Comp.sources.bugs mailing list