---
name: "PX_strdup"
section: "3"
platform: "linux"
package: "pxlib-dev"
version: "0.6.9-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PX_strdup"
---

# PX\_strdup(3)

duplicate a string

## NAME

PX\_strdup — duplicate a string

## SYNOPSIS

\#include \<paradox.h\>

char \* PX\_strdup(pxdoc\_t \*pxdoc, const char \*str)

## DESCRIPTION

Duplicates a string like [strdup(3)](/strdup/3.md) but uses the memory allocation  function as passed to **[PX\_new2(3)](/PX_new2/3.md)**.

## RETURN VALUE

Returns pointer to string on success and NULL on failure.

## SEE ALSO

[PX\_new2(3)](/PX_new2/3.md)

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
