# screen_write_get_citem

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L59
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_get_citem/

```c
static struct screen_write_citem * screen_write_get_citem(void)
```

## Called by

- [`screen_write_clearendofline`](/en/tmux/3.2a/reference/c-function-screen_write_clearendofline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1159)
- [`screen_write_clearline`](/en/tmux/3.2a/reference/c-function-screen_write_clearline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1127)
- [`screen_write_clearstartofline`](/en/tmux/3.2a/reference/c-function-screen_write_clearstartofline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1189)
- [`screen_write_collect_end`](/en/tmux/3.2a/reference/c-function-screen_write_collect_end/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1634)
- [`screen_write_collect_scroll`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_collect_scroll/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1541)
- [`screen_write_collect_trim`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_collect_trim/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1487)
- [`screen_write_init`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L243)

## Calls

- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L69)

## Referenced declarations

- [`screen_write_citem.entry`](/en/tmux/3.2a/reference/c-struct-screen_write_citem-entry/) (attribute)
- [`screen_write_citem`](/en/tmux/3.2a/reference/c-struct-screen_write_citem/) (struct)
- [`screen_write_citem_freelist`](/en/tmux/3.2a/reference/c-variable-screen_write_citem_freelist/) (attribute)
