---
name: "list_replace"
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/list_replace"
---

# list\_replace(9)

replace old entry by new one

## NAME

list\_replace - replace old entry by new one

## SYNOPSIS

**void list\_replace(struct list\_head \*** *old***, struct list\_head \*** *new***);**

## ARGUMENTS

*old*

the element to be replaced

*new*

the new element to insert

## DESCRIPTION

If *old* was empty, it will be overwritten.

## COPYRIGHT
