# expand_paths

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

```c
static void expand_paths(const char *s, char ***paths, u_int *n, int no_realpath)
```

## Parameters

- `s` (`const char *`)
- `paths` (`char ***`)
- `n` (`u_int *`)
- `no_realpath` (`int`)

## Called by

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

## Calls

- [`expand_path`](/en/tmux/3.7c/reference/c-function-tmux-c-expand_path/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L154)
- [`find_home`](/en/tmux/3.7c/reference/c-function-find_home/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L144)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L156)
- [`xreallocarray`](/en/tmux/3.7c/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L180)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L152)

## Referenced by

- [`make_label`](/en/tmux/3.7c/reference/c-function-tmux-c-make_label/) (function)
