# session_find_by_id_str

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

```c
struct session * session_find_by_id_str(const char *s)
```

## Parameters

- `s` (`const char *`)

## Called by

- [`cmd_find_get_session`](/en/tmux/latest/reference/c-function-cmd-find-c-cmd_find_get_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L257)

## Calls

- [`session_find_by_id`](/en/tmux/latest/reference/c-function-session_find_by_id/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L93)
- [`strtonum`](/en/tmux/latest/reference/c-function-strtonum/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L90)

## Referenced declarations

- [`session.id`](/en/tmux/latest/reference/c-struct-session-id/) (attribute)
- [`session`](/en/tmux/latest/reference/c-struct-session/) (struct)
