# screen_write_nputs

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L545
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-screen_write_nputs/

```c
void screen_write_nputs(struct screen_write_ctx *ctx, ssize_t maxlen, const struct grid_cell *gcp, const char *fmt,...)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `maxlen` (`ssize_t`)
- `gcp` (`const struct grid_cell *`)
- `fmt` (`const char *`)
- `` (`...`)

## Called by

- [`mode_tree_draw`](/en/tmux/latest/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L848)
- [`window_buffer_draw`](/en/tmux/latest/reference/c-function-window-buffer-c-window_buffer_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L217)
- [`window_copy_search`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4257)
- [`window_copy_search_marks`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4448)
- [`window_copy_write_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_write_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4959)

## Calls

- [`screen_write_vnputs`](/en/tmux/latest/reference/c-function-screen_write_vnputs/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L551)

## Referenced declarations

- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`screen_write_ctx`](/en/tmux/latest/reference/c-struct-screen_write_ctx/) (struct)
