[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help me stay away from visual C++ :)



On 27-Jul-99 Jason Gunthorpe wrote:
> > 
> fflush doesn't do anything (or at least isn't supposed to) for input
> streams, fflush is ment to flush pending output, not discard pending
> input. So what is happening is that glibc ignores the fflush and
> continually rescans that invalid character in a loop.
> 
> Jason
> 

Ok, thanks for the quick response.  Do you happen to know if there's a similar
way to find out if scanf got a valid input?

Moses
--
Moses Leslie <marmoset@l8r.net>


Reply to: