Mail Archives: djgpp/1997/10/22/13:31:56
Marsel wrote:
> Why the secong scanf function does not wait until the caracter is introduced
> ?. the c variable always contain the caracter \010
Character 10 is a line feed. scanf accepts input until a carriage
return is recieved (pushing Enter). When you push Enter, a carriage
return and a line feed is sent. I would say that this is where the
character 10 is coming from. To fix it, try putting a '\n' at the end
of the format string (first parameter) in your scanf functions. Failing
that, look at the example in the DJGPP documentation (under libc.a).
Hope this helps,
Barry Rodewald.
- Raw text -