# format_find

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3275
- **Page:** https://libtmux.org/en/tmux/3.2a/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.2a/reference/c-function-format-c-format_replace/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4270)

## Calls

- [`environ_find`](/en/tmux/3.2a/reference/c-function-environ_find/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3333)
- [`format_pretty_time`](/en/tmux/3.2a/reference/c-function-format-c-format_pretty_time/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3355)
- [`format_table_get`](/en/tmux/3.2a/reference/c-function-format-c-format_table_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3305)
- [`options_parse_get`](/en/tmux/3.2a/reference/c-function-options_parse_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3289)
- [`options_to_string`](/en/tmux/3.2a/reference/c-function-options_to_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3301)
- [`strtonum`](/en/tmux/3.2a/reference/c-function-strtonum/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3347)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3370)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3324)

## Other function references

- [`format_quote_shell`](/en/tmux/3.2a/reference/c-function-format-c-format_quote_shell/) (function)
- [`format_quote_style`](/en/tmux/3.2a/reference/c-function-format-c-format_quote_style/) (function)

## Referenced declarations

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