# colour_tostring

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

```c
const char * colour_tostring(int c)
```

## Parameters

- `c` (`int`)

## Calls

- [`colour_split_rgb`](/en/tmux/latest/reference/c-function-colour_split_rgb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L134)
- [`xsnprintf`](/en/tmux/latest/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L135)

## Referenced by

- [`colour_parseX11`](/en/tmux/latest/reference/c-function-colour_parsex11/) (function)
- [`format_cb_cursor_colour`](/en/tmux/latest/reference/c-function-format-c-format_cb_cursor_colour/) (function)
- [`format_cb_pane_bg`](/en/tmux/latest/reference/c-function-format-c-format_cb_pane_bg/) (function)
- [`format_cb_pane_fg`](/en/tmux/latest/reference/c-function-format-c-format_cb_pane_fg/) (function)
- [`options_default_to_string`](/en/tmux/latest/reference/c-function-options_default_to_string/) (function)
- [`options_value_to_string`](/en/tmux/latest/reference/c-function-options-c-options_value_to_string/) (function)
- [`style_tostring`](/en/tmux/latest/reference/c-function-style_tostring/) (function)
- [`tty_keys_colours`](/en/tmux/latest/reference/c-function-tty_keys_colours/) (function)

## Referenced declarations

- [`COLOUR_FLAG_256`](/en/tmux/latest/reference/c-define-tmux-h-colour_flag_256/) (constant)
- [`COLOUR_FLAG_RGB`](/en/tmux/latest/reference/c-define-tmux-h-colour_flag_rgb/) (constant)
