# colour_tostring

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

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

## Parameters

- `c` (`int`)

## Calls

- [`colour_split_rgb`](/en/tmux/3.2a/reference/c-function-colour_split_rgb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/colour.c#L119)
- [`xsnprintf`](/en/tmux/3.2a/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/colour.c#L120)

## Referenced by

- [`format_cb_pane_bg`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_pane_bg/) (function)
- [`format_cb_pane_fg`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_pane_fg/) (function)
- [`input_osc_parse_colour`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_parse_colour/) (function)
- [`options_default_to_string`](/en/tmux/3.2a/reference/c-function-options_default_to_string/) (function)
- [`options_value_to_string`](/en/tmux/3.2a/reference/c-function-options-c-options_value_to_string/) (function)
- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)
- [`style_tostring`](/en/tmux/3.2a/reference/c-function-style_tostring/) (function)

## Referenced declarations

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