# grid_string_cells_add_hyperlink

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

```c
static int grid_string_cells_add_hyperlink(char *buf, size_t len, const char *id, const char *uri, int flags)
```

## Parameters

- `buf` (`char *`)
- `len` (`size_t`)
- `id` (`const char *`)
- `uri` (`const char *`)
- `flags` (`int`)

## Called by

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

## Calls

- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L952)

## Referenced declarations

- [`grid_line.flags`](/en/tmux/3.7c/reference/c-struct-grid_line-flags/) (attribute)
- [`GRID_STRING_ESCAPE_SEQUENCES`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_string_escape_sequences/) (constant)
