[net.sources.bugs] problem with scanf and sccs conflict in phantasia func0.c

dbr@cybvax0.UUCP (Douglas Robinson) (10/23/84)

<eat at joe's>

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!
You should replace the 'F' with 'lf' and everything should be ok.
(I hope this saves someone some time looking for a bug).
-- 
Doug Robinson
Cybermation, Inc.
377 Putnam Avenue
Cambridge, MA 02139 (USA)
617/492-8810

...!mit-eddie \
...!harvard    >!cybvax0!dbr
...!mirror    /

Jobs don't kill programmers... programmers kill jobs.

guy@rlgvax.UUCP (Guy Harris) (10/26/84)

> 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