# xrealloc

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/xmalloc.c#L55
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-arguments-c-args_print_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L504)
- [`cmd_capture_pane_append`](/en/tmux/latest/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_append/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-capture-pane.c#L72)
- [`cmd_list_print`](/en/tmux/latest/reference/c-function-cmd_list_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L701)
- [`cmd_set_buffer_exec`](/en/tmux/latest/reference/c-function-cmd-set-buffer-c-cmd_set_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-set-buffer.c#L119)
- [`cmd_stringify_argv`](/en/tmux/latest/reference/c-function-cmd_stringify_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L376)
- [`cmd_template_replace`](/en/tmux/latest/reference/c-function-cmd_template_replace/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L871)
- [`file_push`](/en/tmux/latest/reference/c-function-file_push/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L488)
- [`file_read_callback`](/en/tmux/latest/reference/c-function-file-c-file_read_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L718)
- [`format_cb_config_files`](/en/tmux/latest/reference/c-function-format-c-format_cb_config_files/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1721)
- [`format_loop_clients`](/en/tmux/latest/reference/c-function-format-c-format_loop_clients/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4901)
- [`format_loop_panes`](/en/tmux/latest/reference/c-function-format-c-format_loop_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4858)
- [`format_loop_sessions`](/en/tmux/latest/reference/c-function-format-c-format_loop_sessions/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4672)
- [`format_loop_windows`](/en/tmux/latest/reference/c-function-format-c-format_loop_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4799)
- [`input_input`](/en/tmux/latest/reference/c-function-input-c-input_input/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1271)
- [`osdep_get_name`](/en/tmux/latest/reference/c-function-osdep_get_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/osdep-linux.c#L53)
- [`regsub_copy`](/en/tmux/latest/reference/c-function-regsub-c-regsub_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/regsub.c#L31)
- [`regsub_expand`](/en/tmux/latest/reference/c-function-regsub-c-regsub_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/regsub.c#L55)
- [`utf8_stravis`](/en/tmux/latest/reference/c-function-utf8_stravis/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L736)
- [`utf8_stravisx`](/en/tmux/latest/reference/c-function-utf8_stravisx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L750)
- [`window_copy_append_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_append_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5592)
- [`window_copy_copy_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5652)
- [`window_copy_match_at_cursor`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_match_at_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4661)
- [`window_copy_stringify`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_stringify/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3900)

## Calls

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

## Referenced by

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