# file_write_data

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L633
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-file_write_data/

```c
void file_write_data(struct client_files *files, struct imsg *imsg)
```

## Parameters

- `files` (`struct client_files *`)
- `imsg` (`struct imsg *`)

## Called by

- [`client_dispatch_wait`](/en/tmux/3.7c/reference/c-function-client-c-client_dispatch_wait/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L711)

## Calls

- [`fatalx`](/en/tmux/3.7c/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L641)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L645)

## Referenced declarations

- [`client_files`](/en/tmux/3.7c/reference/c-struct-client_files/) (struct)
- [`client_file.event`](/en/tmux/3.7c/reference/c-struct-client_file-event/) (attribute)
- [`client_file.stream`](/en/tmux/3.7c/reference/c-struct-client_file-stream/) (attribute)
- [`msg_write_data.stream`](/en/tmux/3.7c/reference/c-struct-msg_write_data-stream/) (attribute)
