# _CP_at2

_CP_at2 is equivalent to the `*result* = @(*x*,*y*)` BASIC statement.

## Syntax

```
int _CP_at2(CPSTR** result, int x, int y)
```

## Description

This function returns -1 if
an error occurs. The error code is contained in _CP_errno.

## Example(s)

```
/* home the cursor */
CPSTR * s = _CP_str_null;
_CP_at2(&s,1,1);
_CP_print(s);
```

## See also

- [C functions overview](https://d3codex.com/cfunctions/c-functions-overview/)

---
Source: https://d3codex.com/cfunctions/cp-at2/ - part of the D3Codex reference.
