# attributes_fromstring

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

```c
int attributes_fromstring(const char *str)
```

## Parameters

- `str` (`const char *`)

## Called by

- [`style_parse`](/en/tmux/latest/reference/c-function-style_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/style.c#L232)

## Referenced declarations

- [`GRID_ATTR_BLINK`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_blink/) (constant)
- [`GRID_ATTR_BRIGHT`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_bright/) (constant)
- [`GRID_ATTR_CHARSET`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_charset/) (constant)
- [`GRID_ATTR_DIM`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_dim/) (constant)
- [`GRID_ATTR_HIDDEN`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_hidden/) (constant)
- [`GRID_ATTR_ITALICS`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_italics/) (constant)
- [`GRID_ATTR_OVERLINE`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_overline/) (constant)
- [`GRID_ATTR_REVERSE`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_reverse/) (constant)
- [`GRID_ATTR_STRIKETHROUGH`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_strikethrough/) (constant)
- [`GRID_ATTR_UNDERSCORE`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_underscore/) (constant)
- [`GRID_ATTR_UNDERSCORE_2`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_underscore_2/) (constant)
- [`GRID_ATTR_UNDERSCORE_3`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_underscore_3/) (constant)
- [`GRID_ATTR_UNDERSCORE_4`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_underscore_4/) (constant)
- [`GRID_ATTR_UNDERSCORE_5`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_underscore_5/) (constant)
- [`nitems`](/en/tmux/latest/reference/c-define-tmux-h-nitems/) (constant)
