# session_previous_session

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

```c
struct session * session_previous_session(struct session *s)
```

## Parameters

- `s` (`struct session *`)

## Other function references

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

## Referenced by

- [`cmd_switch_client_exec`](/en/tmux/3.2a/reference/c-function-cmd-switch-client-c-cmd_switch_client_exec/) (function)
- [`control_notify_input`](/en/tmux/3.2a/reference/c-function-control_notify_input/) (function)

## Referenced declarations

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