# _CP_ovfly_subs

_CP_ovfly_subs is equivalent to the `result[*expression1*, *expression2*] = *string1*` BASIC statement.

## Syntax

```
int _CP_ovly_subs(CPSTR** result, CPSTR* string1, int expression1, int expression2)
```

## Description

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

## Example(s)

```
/* Prints "hicdef" */

CPSTR * s = _CP_mkstr("abcdef");
CPSTR * u = _CP_mkstr("hi");

_CP_ovly_subs(&s,u,2,1);
_CP_print(s);
```

## See also

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

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