[net.micro.att] 7300 scanf Question/Bug?

katrina@ihuxf.UUCP (Woodward) (01/04/86)

I was just playing with scanf to read a line that looks like:

	float, string, string, float, float\n

The trick was that the second string had spaces in it.  Looking at the
scanf manual page, it looks like the "[" format specifier is used for
this, so I tried:

	fscanf(fp, "%lf, %s, %[ A-Za-z], %lf, %lf", ...);

This *did* get my embedded spaces into the string holder, BUT it cut off
the scan on "Z" and "z"!!  I would guess that this scanset range goes up
to BUT NOT INCLUDING the last character.  As further evidence, I changed
it to be: [ 0-9A-Za-z] and it also would not pick up "9"s.

I got around the problem by changing to "[^,]" since comma is the only
thing I really want to stop the scan on anyway, but...  Is this a bug in
the 7300, or am I doing something wrong??

Speaking of bugs, is there someplace for "ordinary" folks to report bugs
they find in the 7300?  I know I tripped on a few of them especially in
the "initial" boot of the system (Timezone is set to Pacific time, and
the system THINKS it was initially booted two hours in the future, so as
you pile in new programs, then try a backup, LOTS of files are
overlooked!!)

	Thanks,
	
		Katrina Woodward