# screen_set_path

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L262
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-screen_set_path/

```c
int screen_set_path(struct screen *s, const char *path, int untrusted)
```

## Parameters

- `s` (`struct screen *`)
- `path` (`const char *`)
- `untrusted` (`int`)

## Calls

- [`clean_name`](/en/tmux/latest/reference/c-function-clean_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L266)

## Referenced by

- [`input_exit_osc`](/en/tmux/latest/reference/c-function-input-c-input_exit_osc/) (function)

## Referenced declarations

- [`screen.path`](/en/tmux/latest/reference/c-struct-screen-path/) (attribute)
- [`screen`](/en/tmux/latest/reference/c-struct-screen/) (struct)
