# grid_reader_cursor_end_of_line

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L140
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-grid_reader_cursor_end_of_line/

```c
void grid_reader_cursor_end_of_line(struct grid_reader *gr, int wrap, int all)
```

## Parameters

- `gr` (`struct grid_reader *`)
- `wrap` (`int`)
- `all` (`int`)

## Called by

- [`grid_reader_cursor_left`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_left/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L88)
- [`grid_reader_cursor_previous_word`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_previous_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L274)
- [`window_copy_cursor_end_of_line`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4327)

## Calls

- [`grid_reader_line_length`](/en/tmux/3.2a/reference/c-function-grid_reader_line_length/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L153)

## Other function references

- [`grid_get_line`](/en/tmux/3.2a/reference/c-function-grid_get_line/) (function)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`grid_reader.cx`](/en/tmux/3.2a/reference/c-struct-grid_reader-cx/) (attribute)
- [`grid_reader.cy`](/en/tmux/3.2a/reference/c-struct-grid_reader-cy/) (attribute)
- [`grid_line.flags`](/en/tmux/3.2a/reference/c-struct-grid_line-flags/) (attribute)
- [`grid_reader.gd`](/en/tmux/3.2a/reference/c-struct-grid_reader-gd/) (attribute)
- [`GRID_LINE_WRAPPED`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_line_wrapped/) (constant)
- [`grid_reader`](/en/tmux/3.2a/reference/c-struct-grid_reader/) (struct)
- [`grid.hsize`](/en/tmux/3.2a/reference/c-struct-grid-hsize/) (attribute)
- [`grid.sx`](/en/tmux/3.2a/reference/c-struct-grid-sx/) (attribute)
- [`grid.sy`](/en/tmux/3.2a/reference/c-struct-grid-sy/) (attribute)
