|
|||||||||||
Technical Support Support Resources
Product Information |
C51: GETCHAR Echoes CharactersInformation in this article applies to:
QUESTIONI just discovered that the getchar function in the library echoes characters received. Is there a getchar that I can use that will not echo characters? ANSWERYes. The default getchar is implemented similar to the following:
Note that this simple implementation does not account for the ungetchar function. The following replacement for getchar will return received characters without echoing them:
Again, note that this implementation does not account for the ungetchar function. If you use ungetchar, you must also include that functionality in your implementation of getchar. SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.