# xrealloc

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/xmalloc.c#L55
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-xrealloc/

```c
void * xrealloc(void *ptr, size_t size)
```

## Parameters

- `ptr` (`void *`)
- `size` (`size_t`)

## Called by

- [`args_print_add`](/en/tmux/3.2a/reference/c-function-arguments-c-args_print_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/arguments.c#L135)
- [`cmd_capture_pane_append`](/en/tmux/3.2a/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_append/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-capture-pane.c#L68)
- [`cmd_list_keys_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-keys-c-cmd_list_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-keys.c#L274)
- [`cmd_list_print`](/en/tmux/3.2a/reference/c-function-cmd_list_print/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd.c#L636)
- [`cmd_set_buffer_exec`](/en/tmux/3.2a/reference/c-function-cmd-set-buffer-c-cmd_set_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-buffer.c#L113)
- [`cmd_stringify_argv`](/en/tmux/3.2a/reference/c-function-cmd_stringify_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd.c#L371)
- [`cmd_template_replace`](/en/tmux/3.2a/reference/c-function-cmd_template_replace/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd.c#L808)
- [`file_push`](/en/tmux/3.2a/reference/c-function-file_push/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L456)
- [`file_read_callback`](/en/tmux/3.2a/reference/c-function-file-c-file_read_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L684)
- [`format_cb_config_files`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_config_files/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L1424)
- [`format_loop_panes`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3859)
- [`format_loop_sessions`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_sessions/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3732)
- [`format_loop_windows`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3807)
- [`input_input`](/en/tmux/3.2a/reference/c-function-input-c-input_input/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1182)
- [`osdep_get_name`](/en/tmux/3.2a/reference/c-function-osdep_get_name/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/osdep-linux.c#L53)
- [`regsub_copy`](/en/tmux/3.2a/reference/c-function-regsub-c-regsub_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/regsub.c#L31)
- [`regsub_expand`](/en/tmux/3.2a/reference/c-function-regsub-c-regsub_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/regsub.c#L55)
- [`utf8_stravis`](/en/tmux/3.2a/reference/c-function-utf8_stravis/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/utf8.c#L360)
- [`utf8_stravisx`](/en/tmux/3.2a/reference/c-function-utf8_stravisx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/utf8.c#L374)
- [`window_copy_append_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_append_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4166)
- [`window_copy_copy_line`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4222)
- [`window_copy_match_at_cursor`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_match_at_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3494)
- [`window_copy_stringify`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_stringify/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2793)

## Calls

- [`xreallocarray`](/en/tmux/3.2a/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/xmalloc.c#L57)

## Referenced by

- [`input_ground`](/en/tmux/3.2a/reference/c-function-input-c-input_ground/) (function)
