Echoing chars and input functions
Michael Burgett
burgett at steel.COM
Fri Aug 19 09:26:54 AEST 1988
In article <2821 at boulder.Colorado.EDU> swarbric at tramp.Colorado.EDU (Frank Swarbrick) writes:
>>>What, then, is the portable way to input a character from standard input,
>>>echoing the character to the screen when necessary?
>>
>>We already answered that! It's
>> c = getchar();
>
>I could have sworn someone said their compiler did not echo the character when
>they used this. Did I misunderstand someone, or is their compiler just
>non-conformant (broken)?
I think the point is that terminal echo is controlled by the operating system
and NOT by the c library function used to get the character.
mike burgett
burgett!adobe.decwrl.dec.com
More information about the Comp.lang.c
mailing list