# grid_string_cells_fg

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

```c
static size_t grid_string_cells_fg(const struct grid_cell *gc, int *values)
```

## Parameters

- `gc` (`const struct grid_cell *`)
- `values` (`int *`)

## Called by

- [`grid_string_cells_code`](/en/tmux/latest/reference/c-function-grid-c-grid_string_cells_code/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1038)

## Calls

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

## 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)
- [`grid_cell.fg`](/en/tmux/latest/reference/c-struct-grid_cell-fg/) (attribute)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
