---
name: "strchange"
section: "3pub"
platform: "linux"
package: "publib-dev"
version: "0.40-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/strchange"
---

# strchange(3pub)

replace beginning of string with beginning of another string

## NAME

strchange - replace beginning of string with beginning of another string

## SYNOPSIS

```
#include <publib.h>
char *strchange(char *str, size_t changelen,
                  const char *new, size_t newlen);
```

## DESCRIPTION

*strchange* will replace *changelen* characters from the beginning of *str* with *newlen* characters from the beginning of *new*.  The rest of *str* will moved appropriately.

## RETURN VALUE

*strchange* will return its first argument.

## SEE ALSO

publib(3), [strcpy(3)](/strcpy/3.md)

## AUTHOR

Lars Wirzenius (lars.wirzenius@helsinki.fi)
