# session_new

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

```c
struct winlink * session_new(struct session *, const char *, int, char **, const char *, const char *, int, char **)
```

## Parameters

- `` (`struct session *`)
- `` (`const char *`)
- `` (`int`)
- `` (`char **`)

## Other function references

- [`fatal`](/en/tmux/3.2a/reference/c-function-fatal/) (function)
- [`fatalx`](/en/tmux/3.2a/reference/c-function-fatalx/) (function)
- [`log_add_level`](/en/tmux/3.2a/reference/c-function-log_add_level/) (function)
- [`log_close`](/en/tmux/3.2a/reference/c-function-log_close/) (function)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function)
- [`log_get_level`](/en/tmux/3.2a/reference/c-function-log_get_level/) (function)
- [`log_open`](/en/tmux/3.2a/reference/c-function-log_open/) (function)
- [`log_toggle`](/en/tmux/3.2a/reference/c-function-log_toggle/) (function)
- [`osdep_event_init`](/en/tmux/3.2a/reference/c-function-osdep_event_init/) (function)
- [`osdep_get_cwd`](/en/tmux/3.2a/reference/c-function-osdep_get_cwd/) (function)
- [`osdep_get_name`](/en/tmux/3.2a/reference/c-function-osdep_get_name/) (function)
- [`session_attach`](/en/tmux/3.2a/reference/c-function-session_attach/) (function)
- [`session_detach`](/en/tmux/3.2a/reference/c-function-session_detach/) (function)
- [`session_group_add`](/en/tmux/3.2a/reference/c-function-session_group_add/) (function)
- [`session_group_attached_count`](/en/tmux/3.2a/reference/c-function-session_group_attached_count/) (function)
- [`session_group_contains`](/en/tmux/3.2a/reference/c-function-session_group_contains/) (function)
- [`session_group_count`](/en/tmux/3.2a/reference/c-function-session_group_count/) (function)
- [`session_group_find`](/en/tmux/3.2a/reference/c-function-session_group_find/) (function)
- [`session_group_new`](/en/tmux/3.2a/reference/c-function-session_group_new/) (function)
- [`session_group_synchronize_from`](/en/tmux/3.2a/reference/c-function-session_group_synchronize_from/) (function)
- [`session_group_synchronize_to`](/en/tmux/3.2a/reference/c-function-session_group_synchronize_to/) (function)
- [`session_has`](/en/tmux/3.2a/reference/c-function-session_has/) (function)
- [`session_is_linked`](/en/tmux/3.2a/reference/c-function-session_is_linked/) (function)
- [`session_last`](/en/tmux/3.2a/reference/c-function-session_last/) (function)
- [`session_next`](/en/tmux/3.2a/reference/c-function-session_next/) (function)
- [`session_previous`](/en/tmux/3.2a/reference/c-function-session_previous/) (function)
- [`session_renumber_windows`](/en/tmux/3.2a/reference/c-function-session_renumber_windows/) (function)
- [`session_select`](/en/tmux/3.2a/reference/c-function-session_select/) (function)
- [`session_set_current`](/en/tmux/3.2a/reference/c-function-session_set_current/) (function)
- [`utf8_append`](/en/tmux/3.2a/reference/c-function-utf8_append/) (function)
- [`utf8_build_one`](/en/tmux/3.2a/reference/c-function-utf8_build_one/) (function)
- [`utf8_copy`](/en/tmux/3.2a/reference/c-function-utf8_copy/) (function)
- [`utf8_cstrhas`](/en/tmux/3.2a/reference/c-function-utf8_cstrhas/) (function)
- [`utf8_cstrwidth`](/en/tmux/3.2a/reference/c-function-utf8_cstrwidth/) (function)
- [`utf8_from_data`](/en/tmux/3.2a/reference/c-function-utf8_from_data/) (function)
- [`utf8_fromcstr`](/en/tmux/3.2a/reference/c-function-utf8_fromcstr/) (function)
- [`utf8_isvalid`](/en/tmux/3.2a/reference/c-function-utf8_isvalid/) (function)
- [`utf8_open`](/en/tmux/3.2a/reference/c-function-utf8_open/) (function)
- [`utf8_padcstr`](/en/tmux/3.2a/reference/c-function-utf8_padcstr/) (function)
- [`utf8_rpadcstr`](/en/tmux/3.2a/reference/c-function-utf8_rpadcstr/) (function)
- [`utf8_sanitize`](/en/tmux/3.2a/reference/c-function-utf8_sanitize/) (function)
- [`utf8_set`](/en/tmux/3.2a/reference/c-function-utf8_set/) (function)
- [`utf8_stravis`](/en/tmux/3.2a/reference/c-function-utf8_stravis/) (function)
- [`utf8_stravisx`](/en/tmux/3.2a/reference/c-function-utf8_stravisx/) (function)
- [`utf8_strlen`](/en/tmux/3.2a/reference/c-function-utf8_strlen/) (function)
- [`utf8_strvis`](/en/tmux/3.2a/reference/c-function-utf8_strvis/) (function)
- [`utf8_strwidth`](/en/tmux/3.2a/reference/c-function-utf8_strwidth/) (function)
- [`utf8_to_data`](/en/tmux/3.2a/reference/c-function-utf8_to_data/) (function)
- [`utf8_tocstr`](/en/tmux/3.2a/reference/c-function-utf8_tocstr/) (function)

## Referenced declarations

- [`__dead`](/en/tmux/3.2a/reference/c-define-compat-h-__dead/) (constant)
- [`printflike`](/en/tmux/3.2a/reference/c-define-tmux-h-printflike/) (constant)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`winlink`](/en/tmux/3.2a/reference/c-struct-winlink/) (struct)
