# file_print_buffer

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

```c
void file_print_buffer(struct client *c, void *data, size_t size)
```

## Parameters

- `c` (`struct client *`)
- `data` (`void *`)
- `size` (`size_t`)

## Called by

- [`cmd_capture_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-capture-pane.c#L227)

## Calls

- [`file_can_print`](/en/tmux/3.2a/reference/c-function-file_can_print/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L228)
- [`file_create_with_client`](/en/tmux/3.2a/reference/c-function-file_create_with_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L233)
- [`file_push`](/en/tmux/3.2a/reference/c-function-file_push/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L244)
- [`proc_send`](/en/tmux/3.2a/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L241)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L234)

## Referenced declarations

- [`client_file.buffer`](/en/tmux/3.2a/reference/c-struct-client_file-buffer/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`msg_write_open.fd`](/en/tmux/3.2a/reference/c-struct-msg_write_open-fd/) (attribute)
- [`client.files`](/en/tmux/3.2a/reference/c-struct-client-files/) (attribute)
- [`msg_write_open.flags`](/en/tmux/3.2a/reference/c-struct-msg_write_open-flags/) (attribute)
- [`MSG_WRITE_OPEN`](/en/tmux/3.2a/reference/c-enum-msgtype-msg_write_open/) (constant)
- [`client_file.path`](/en/tmux/3.2a/reference/c-struct-client_file-path/) (attribute)
- [`client.peer`](/en/tmux/3.2a/reference/c-struct-client-peer/) (attribute)
- [`client_file.stream`](/en/tmux/3.2a/reference/c-struct-client_file-stream/) (attribute)
- [`msg_write_open.stream`](/en/tmux/3.2a/reference/c-struct-msg_write_open-stream/) (attribute)
