# layout_set_lookup

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L53
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-layout_set_lookup/

```c
int layout_set_lookup(const char *name)
```

## Parameters

- `name` (`const char *`)

## Called by

- [`cmd_select_layout_exec`](/en/tmux/3.7c/reference/c-function-cmd-select-layout-c-cmd_select_layout_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-select-layout.c#L119)

## Referenced declarations

- [`layout_sets`](/en/tmux/3.7c/reference/c-variable-layout-set-c-layout_sets/) (attribute)
- [`window.name`](/en/tmux/3.7c/reference/c-struct-window-name/) (attribute)
- [`nitems`](/en/tmux/3.7c/reference/c-define-tmux-h-nitems/) (constant)
