# format_find

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

```c
static char * format_find(struct format_tree *ft, const char *key, int modifiers, const char *time_format)
```

## Parameters

- `ft` (`struct format_tree *`)
- `key` (`const char *`)
- `modifiers` (`int`)
- `time_format` (`const char *`)

## Called by

- [`format_replace`](/en/tmux/3.7c/reference/c-function-format-c-format_replace/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5448)

## Calls

- [`args_escape`](/en/tmux/3.7c/reference/c-function-args_escape/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4191)
- [`environ_find`](/en/tmux/3.7c/reference/c-function-environ_find/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4129)
- [`format_pretty_time`](/en/tmux/3.7c/reference/c-function-format_pretty_time/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4151)
- [`format_quote_shell`](/en/tmux/3.7c/reference/c-function-format-c-format_quote_shell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4181)
- [`format_quote_style`](/en/tmux/3.7c/reference/c-function-format-c-format_quote_style/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4186)
- [`format_strftime`](/en/tmux/3.7c/reference/c-function-format-c-format_strftime/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4155)
- [`format_table_get`](/en/tmux/3.7c/reference/c-function-format-c-format_table_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4101)
- [`options_parse_get`](/en/tmux/3.7c/reference/c-function-options_parse_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4085)
- [`options_to_string`](/en/tmux/3.7c/reference/c-function-options_to_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4097)
- [`strtonum`](/en/tmux/3.7c/reference/c-function-strtonum/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4143)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4166)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4120)

## Referenced declarations

- [`format_entry.cb`](/en/tmux/3.7c/reference/c-struct-format_entry-cb/) (attribute)
- [`format_table_entry.cb`](/en/tmux/3.7c/reference/c-struct-format_table_entry-cb/) (attribute)
- [`session.environ`](/en/tmux/3.7c/reference/c-struct-session-environ/) (attribute)
- [`FORMAT_BASENAME`](/en/tmux/3.7c/reference/c-define-format-c-format_basename/) (constant)
- [`FORMAT_DIRNAME`](/en/tmux/3.7c/reference/c-define-format-c-format_dirname/) (constant)
- [`FORMAT_PRETTY`](/en/tmux/3.7c/reference/c-define-format-c-format_pretty/) (constant)
- [`FORMAT_QUOTE_ARGUMENTS`](/en/tmux/3.7c/reference/c-define-format-c-format_quote_arguments/) (constant)
- [`FORMAT_QUOTE_SHELL`](/en/tmux/3.7c/reference/c-define-format-c-format_quote_shell/) (constant)
- [`FORMAT_QUOTE_STYLE`](/en/tmux/3.7c/reference/c-define-format-c-format_quote_style/) (constant)
- [`FORMAT_TABLE_TIME`](/en/tmux/3.7c/reference/c-enum-format_table_type-format_table_time/) (constant)
- [`FORMAT_TIMESTRING`](/en/tmux/3.7c/reference/c-define-format-c-format_timestring/) (constant)
- [`format_tree`](/en/tmux/3.7c/reference/c-struct-format_tree/) (struct)
- [`global_environ`](/en/tmux/3.7c/reference/c-variable-global_environ/) (attribute)
- [`global_options`](/en/tmux/3.7c/reference/c-variable-global_options/) (attribute)
- [`global_s_options`](/en/tmux/3.7c/reference/c-variable-global_s_options/) (attribute)
- [`global_w_options`](/en/tmux/3.7c/reference/c-variable-global_w_options/) (attribute)
- [`format_entry.key`](/en/tmux/3.7c/reference/c-struct-format_entry-key/) (attribute)
- [`session.options`](/en/tmux/3.7c/reference/c-struct-session-options/) (attribute)
- [`window_pane.options`](/en/tmux/3.7c/reference/c-struct-window_pane-options/) (attribute)
- [`window.options`](/en/tmux/3.7c/reference/c-struct-window-options/) (attribute)
- [`format_tree.s`](/en/tmux/3.7c/reference/c-struct-format_tree-s/) (attribute)
- [`format_entry.time`](/en/tmux/3.7c/reference/c-struct-format_entry-time/) (attribute)
- [`format_tree.tree`](/en/tmux/3.7c/reference/c-struct-format_tree-tree/) (attribute)
- [`format_table_entry.type`](/en/tmux/3.7c/reference/c-struct-format_table_entry-type/) (attribute)
- [`environ_entry.value`](/en/tmux/3.7c/reference/c-struct-environ_entry-value/) (attribute)
- [`format_entry.value`](/en/tmux/3.7c/reference/c-struct-format_entry-value/) (attribute)
- [`format_tree.w`](/en/tmux/3.7c/reference/c-struct-format_tree-w/) (attribute)
- [`format_tree.wp`](/en/tmux/3.7c/reference/c-struct-format_tree-wp/) (attribute)
