# format_cb_window_stack_index

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L593
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-format-c-format_cb_window_stack_index/

```c
static void * format_cb_window_stack_index(struct format_tree *ft)
```

## Parameters

- `ft` (`struct format_tree *`)

## Calls

- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L612)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L611)

## Referenced declarations

- [`format_tree`](/en/tmux/3.2a/reference/c-struct-format_tree/) (struct)
- [`winlink.idx`](/en/tmux/3.2a/reference/c-struct-winlink-idx/) (attribute)
- [`session.lastw`](/en/tmux/3.2a/reference/c-struct-session-lastw/) (attribute)
- [`winlink.sentry`](/en/tmux/3.2a/reference/c-struct-winlink-sentry/) (attribute)
- [`winlink.session`](/en/tmux/3.2a/reference/c-struct-winlink-session/) (attribute)
- [`format_tree.wl`](/en/tmux/3.2a/reference/c-struct-format_tree-wl/) (attribute)
