---
name: "strreplace"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/strreplace"
---

# strreplace(9)

Replace all occurrences of character in string.

## NAME

strreplace - Replace all occurrences of character in string.

## SYNOPSIS

**char \* strreplace(char \*** *s***, char** *old***, char** *new***);**

## ARGUMENTS

*s*

The string to operate on.

*old*

The character being replaced.

*new*

The character *old* is replaced with.

## DESCRIPTION

Returns pointer to the nul byte at the end of *s*.

## COPYRIGHT
