This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Echo cancelation for scanf

Well, scanf now works fine.
I can read signed int, hex and float. :-)

But every received sign is echoed by scanf.

	while(1)
	{
		printf("Enter your personal secret Hex-key!\n");
		if (scanf("%X",&A)) break;
		scanf("%*");				//Clearing scanf input stream
	}

How to cancel this sometimes unwanted echo? Thanks for advice :-)

Parents Reply Children
No data