# hyperlinks_put

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

```c
u_int hyperlinks_put(struct hyperlinks *hl, const char *uri_in, const char *internal_id_in)
```

## Parameters

- `hl` (`struct hyperlinks *`)
- `uri_in` (`const char *`)
- `internal_id_in` (`const char *`)

## Called by

- [`input_osc_8`](/en/tmux/latest/reference/c-function-input-c-input_osc_8/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L2980)

## Calls

- [`hyperlinks_remove`](/en/tmux/latest/reference/c-function-hyperlinks-c-hyperlinks_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/hyperlinks.c#L174)
- [`utf8_stravis`](/en/tmux/latest/reference/c-function-utf8_stravis/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/hyperlinks.c#L147)
- [`xasprintf`](/en/tmux/latest/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/hyperlinks.c#L161)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/hyperlinks.c#L163)

## Referenced declarations

- [`hyperlinks.by_inner`](/en/tmux/latest/reference/c-struct-hyperlinks-by_inner/) (attribute)
- [`hyperlinks.by_uri`](/en/tmux/latest/reference/c-struct-hyperlinks-by_uri/) (attribute)
- [`hyperlinks_uri.external_id`](/en/tmux/latest/reference/c-struct-hyperlinks_uri-external_id/) (attribute)
- [`global_hyperlinks`](/en/tmux/latest/reference/c-variable-hyperlinks-c-global_hyperlinks/) (attribute)
- [`global_hyperlinks_count`](/en/tmux/latest/reference/c-variable-hyperlinks-c-global_hyperlinks_count/) (attribute)
- [`hyperlinks`](/en/tmux/latest/reference/c-struct-hyperlinks/) (struct)
- [`hyperlinks_next_external_id`](/en/tmux/latest/reference/c-variable-hyperlinks-c-hyperlinks_next_external_id/) (attribute)
- [`hyperlinks_uri.inner`](/en/tmux/latest/reference/c-struct-hyperlinks_uri-inner/) (attribute)
- [`hyperlinks_uri.internal_id`](/en/tmux/latest/reference/c-struct-hyperlinks_uri-internal_id/) (attribute)
- [`hyperlinks_uri.list_entry`](/en/tmux/latest/reference/c-struct-hyperlinks_uri-list_entry/) (attribute)
- [`MAX_HYPERLINKS`](/en/tmux/latest/reference/c-define-hyperlinks-c-max_hyperlinks/) (constant)
- [`hyperlinks.next_inner`](/en/tmux/latest/reference/c-struct-hyperlinks-next_inner/) (attribute)
- [`hyperlinks_uri.tree`](/en/tmux/latest/reference/c-struct-hyperlinks_uri-tree/) (attribute)
- [`hyperlinks_uri.uri`](/en/tmux/latest/reference/c-struct-hyperlinks_uri-uri/) (attribute)
