[Ilugc] Character inputs?

  • From: muthu.rk@xxxxxxxxx (Muthukumaran R)
  • Date: Mon Aug 29 17:58:52 2005

Hi all,

I have a fundamental query in C? Kindly plz clarify the doubt.

In C character inputs can be obtained using some functions like
getchar(),getch(),scanf() etc.. These inputs gets terminated only when
end-of-line is given.

I will explain my problem with an example?

I have two process communicating each other using some IPC technique.
one process gets an input from the user and the other process has to
display what the user has given as input. When I use built-in i/p
reading fns., i can display only as a string(since the inbuilt
functions terminates only when end of line is given).  I need to echo
as character by character. When the user presses a key the i/p process
should read it and the o/p process should echo it IMMEDIATELY.

can anyone suggest me some solution to this problem

muthu

Other related posts: