---
name: "XmStringCopy"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmStringCopy"
---

# XmStringCopy(3)

A compound string function that makes a copy of a string

## NAME

**XmStringCopy** — A compound string function that makes a copy of a string

## SYNOPSIS

```
#include <Xm/Xm.h>
XmString XmStringCopy(
XmString s1);
```

## DESCRIPTION

**XmStringCopy** makes a copy of an existing compound string. When the application no longer needs the returned compound string, the application should call **XmStringFree**.

- *s1*

  Specifies the compound string to be copied

## RETURN

Returns a compound string.

## RELATED

[**XmStringCreate**(3)](/XmStringCreate/3.md) and [**XmStringFree**(3)](/XmStringFree/3.md).
