diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-09 22:47:17 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-09 22:47:17 +0200 |
commit | a9bc337202ac7614821958063c5cec51e16dd48c (patch) | |
tree | 6c42a4c344a853691e85df67feab575482818d39 /libterminput_is_ready.3 | |
parent | Add libterminput.7 (diff) | |
download | libterminput-a9bc337202ac7614821958063c5cec51e16dd48c.tar.gz libterminput-a9bc337202ac7614821958063c5cec51e16dd48c.tar.bz2 libterminput-a9bc337202ac7614821958063c5cec51e16dd48c.tar.xz |
Add libterminput_is_ready
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libterminput_is_ready.3')
-rw-r--r-- | libterminput_is_ready.3 | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/libterminput_is_ready.3 b/libterminput_is_ready.3 new file mode 100644 index 0000000..293d60e --- /dev/null +++ b/libterminput_is_ready.3 @@ -0,0 +1,56 @@ +.TH LIBTERMINPUT_IS_READY 3 LIBTERMINPUT +.SH NAME +libterminput_is_ready \- Check if there is read data buffered + +.SH SYNOPSIS +.nf +#include <libterminput.h> + +inline int libterminput_is_ready(union libterminput_input *input, struct libterminput_state *ctx); +.fi +.PP +Link with +.IR \-lterminput . + +.SH DESCRIPTION +The +.BR libterminput_is_ready () +function check if a call to the +.BR libterminput_read (3) +function will skip reading from the file +descriptor passed to it because it already +has read data buffered. + +.SH RETURN VALUE +The +.BR libterminput_is_ready () +function return 1 if the next call to the +.BR libterminput_read (3) +function will not from file descriptor +passed to it, and 0 otherwise. + +.SH ERRORS +The +.BR libterminput_is_ready () +function cannot fail. + +.SH EXAMPLES +None. + +.SH APPLICATION USAGE +None. + +.SH RATIONALE +None. + +.SH FUTURE DIRECTIONS +None. + +.SH NOTES +None. + +.SH BUGS +None. + +.SH SEE ALSO +.BR libterminput_read (3) |