fscanf question

Conor P. Cahill cpcahil at virtech.uucp
Thu Dec 28 16:33:00 AEST 1989


In article <6983 at ohstpy.mps.ohio-state.edu>, SMITHJ at ohstpy.mps.ohio-state.edu writes:
> 	fscanf(stream,"%-30s %-30s",instr1,instr2);
		        ^     ^ these are the problem.

(F)scanf does not understand the left hand justification indicator (-).  
Delete the dashes and it will work as you want it to.

-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+



More information about the Comp.lang.c mailing list