# expand_path

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

```c
static char * expand_path(const char *path, const char *home)
```

## Parameters

- `path` (`const char *`)
- `home` (`const char *`)

## Called by

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

## Calls

- [`environ_find`](/en/tmux/3.7c/reference/c-function-environ_find/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L128)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L118)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L125)
- [`xstrndup`](/en/tmux/3.7c/reference/c-function-xstrndup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L127)

## Referenced declarations

- [`global_environ`](/en/tmux/3.7c/reference/c-variable-global_environ/) (attribute)
- [`environ_entry.name`](/en/tmux/3.7c/reference/c-struct-environ_entry-name/) (attribute)
- [`environ_entry.value`](/en/tmux/3.7c/reference/c-struct-environ_entry-value/) (attribute)
