# _CP_replace_bridge

_CP_replace_bridge is equivalent to
the `replace *expression*,*string1* with *string2*` BASIC statement.

## Syntax

```
int _CP_replace_bridge(int expression, CPSTR* string1, CPSTR* string2)
```
*expression* should be an integer file
descriptor returned by the _CP_open call.

## Description

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

Note: A bridge must be present on the desired file.

## See also

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

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