# file_get_path

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

```c
static char * file_get_path(struct client *c, const char *file)
```

## Parameters

- `c` (`struct client *`)
- `file` (`const char *`)

## Called by

- [`file_read`](/en/tmux/3.2a/reference/c-function-file_read/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L382)
- [`file_write`](/en/tmux/3.2a/reference/c-function-file_write/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L308)

## Calls

- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L49)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L47)

## Other function references

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

## Referenced declarations

- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
