# window_customize_build_array

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L231
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_build_array/

```c
static void window_customize_build_array(struct window_customize_modedata *data, struct mode_tree_item *top, enum window_customize_scope scope, struct options_entry *o, struct format_tree *ft)
```

## Parameters

- `data` (`struct window_customize_modedata *`)
- `top` (`struct mode_tree_item *`)
- `scope` (`enum window_customize_scope`)
- `o` (`struct options_entry *`)
- `ft` (`struct format_tree *`)

## Called by

- [`window_customize_build_option`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_build_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L338)

## Calls

- [`format_add`](/en/tmux/3.7c/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L248)
- [`format_expand`](/en/tmux/3.7c/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L258)
- [`mode_tree_add`](/en/tmux/3.7c/reference/c-function-mode_tree_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L260)
- [`options_array_first`](/en/tmux/3.7c/reference/c-function-options_array_first/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L243)
- [`options_array_item_index`](/en/tmux/3.7c/reference/c-function-options_array_item_index/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L245)
- [`options_array_next`](/en/tmux/3.7c/reference/c-function-options_array_next/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L266)
- [`options_owner`](/en/tmux/3.7c/reference/c-function-options_owner/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L236)
- [`options_to_string`](/en/tmux/3.7c/reference/c-function-options_to_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L249)
- [`window_customize_add_item`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_add_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L252)
- [`window_customize_get_tag`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_get_tag/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L259)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L247)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L255)

## Other function references

- [`options_name`](/en/tmux/3.7c/reference/c-function-options_name/) (function)

## Referenced declarations

- [`window_customize_modedata.data`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata-data/) (attribute)
- [`window_customize_modedata.format`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata-format/) (attribute)
- [`format_tree`](/en/tmux/3.7c/reference/c-struct-format_tree/) (struct)
- [`window_customize_itemdata.idx`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-idx/) (attribute)
- [`mode_tree_item`](/en/tmux/3.7c/reference/c-struct-mode_tree_item/) (struct)
- [`window_customize_itemdata.name`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-name/) (attribute)
- [`window_customize_itemdata.oo`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-oo/) (attribute)
- [`options_entry`](/en/tmux/3.7c/reference/c-struct-options_entry/) (struct)
- [`window_customize_itemdata.scope`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-scope/) (attribute)
- [`options_array_item.value`](/en/tmux/3.7c/reference/c-struct-options_array_item-value/) (attribute)
- [`window_customize_modedata`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata/) (struct)
- [`window_customize_scope`](/en/tmux/3.7c/reference/c-enum-window_customize_scope/) (enum)
