Re: echo charecter program...



Keith Thompson <kst-u@xxxxxxx> writes:
hdsalbki <hdsalbki@xxxxxxxxx> writes:
I have below a small program to echo back what character the user
types. It's working OK but prints a extra prompt between every
character. what can I do? I'm new in C and my book is very
difficult...
[snip]
The program is actually doing just what you told it to do.
[snip]

Apologies for the double post. I was insufficiently patient with my
news server.

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.



Relevant Pages

  • Re: echo charecter program...
    ... It's working OK but prints a extra prompt between every ... character. ... Apologies for the double post. ... Nokia ...
    (comp.lang.c)
  • Re: echo charecter program...
    ... The reason you are getting an extra prompt is that when you ... type the character of input, ... You're writing to standard output, ... a fully buffered stream, it appears when a buffer has been filled; ...
    (comp.lang.c)
  • Re: echo charecter program...
    ... Walter Roberson wrote: ... The reason you are getting an extra prompt is that when you ... type the character of input, ... scanf() call; the second time through the loop, ...
    (comp.lang.c)
  • use of "restricted product" symbol (prod and coprod together)
    ... (Apologies if this is mildly offtopic.) ... I'd like to suggest the addition of this character ... convincing the proposal will be. ... contain a font having the character in question. ...
    (sci.math.research)
  • Re: echo charecter program...
    ... operating system; in C89 if you do not return a value to the ... The reason you are getting an extra prompt is that when you ... type the character of input, ... input waiting, namely the newline character. ...
    (comp.lang.c)