atari email archive

a collection of messages sent at Atari from 1983 to 1992.

Bad Bug in Vax C (and in some PPS utilities)

(1 / 1)


	Just a polite warning to anyone using any C programs: (i.e. I
just got chomped upon by this bug):

	When using formatted input via VAX C, if you request a hex
(i.e. %x) conversion, any solitary zero will be dropped from the input
string. For example, if you type '0,4000' as an input address range, the
'0' will be ignored, and the program will only see a single input
item of '4000'.

	So far, at least two pps utilities (pbfmm and sys1gr) have this
bug. 

	A quick fix is to never allow zeros to be alone -- type 2 or more
in a row and the C input routine will notice the number correctly.
I.E. type the previous address range as '00,4000' and it should be read ok.

	G
	 R
Message 1 of 1

Sep 24, 1985