-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify error handling of tty_putc()
The error handling can be done inside tty_putc() even tho it's used as the putfunc argument to tputs() since the latter does not rely on getting EOF back. Quoting POSIX[1]: The user-supplied function putfunc (specified as an argument to tputs()) is either putchar() or some other function with the same prototype. The tputs() function ignores the return value of putfunc. [1] http://pubs.opengroup.org/onlinepubs/7908799/xcurses/putp.html
- Loading branch information
Showing
1 changed file
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters