1TERMKEY_SET_BUFFER_SIZE(3) Library Functions Manual TERMKEY_SET_BUFFER_SIZE(3)
2
3
4

NAME

6       termkey_set_buffer_size,  termkey_get_buffer_size  - control the buffer
7       size
8

SYNOPSIS

10       #include <termkey.h>
11
12       int termkey_set_buffer_size(TermKey *tk, size_t size);
13       size_t termkey_get_buffer_size(TermKey *tk);
14
15       Link with -ltermkey.
16

DESCRIPTION

18       termkey_set_buffer_size() changes the size of the buffer space  in  the
19       termkey(7)  instance  to  that  given by size. Any bytes pending in the
20       buffer will be preserved when resizing, though they will  be  truncated
21       if  the  new size is smaller than the total number of bytes in the buf‐
22       fer.
23
24       termkey_get_buffer_size() returns the size of the  buffer  set  by  the
25       last  call to termkey_set_buffer_size(), or the default initial size of
26       256 bytes.
27

RETURN VALUE

29       termkey_set_buffer_size() returns a true value, or  zero  if  an  error
30       occurs.  termkey_get_buffer_size()  returns  the current buffer size in
31       bytes.
32

SEE ALSO

34       termkey_new(3), termkey_get_buffer_remaining(3), termkey(7)
35
36
37
38                                                    TERMKEY_SET_BUFFER_SIZE(3)
Impressum