# tty_add_features

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

```c
void tty_add_features(int *feat, const char *s, const char *separators)
```

## Parameters

- `feat` (`int *`)
- `s` (`const char *`)
- `separators` (`const char *`)

## Called by

- [`main`](/en/tmux/3.7c/reference/c-function-main/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L410)
- [`tty_default_features`](/en/tmux/3.7c/reference/c-function-tty_default_features/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-features.c#L566)
- [`tty_keys_device_attributes`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_device_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1505)
- [`tty_term_create`](/en/tmux/3.7c/reference/c-function-tty_term_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L599)

## Calls

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

## Referenced declarations

- [`tty_feature.name`](/en/tmux/3.7c/reference/c-struct-tty_feature-name/) (attribute)
- [`nitems`](/en/tmux/3.7c/reference/c-define-tmux-h-nitems/) (constant)
- [`tty_features`](/en/tmux/3.7c/reference/c-variable-tty-features-c-tty_features/) (attribute)
