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

# XmStringConcat(3)

A compound string function that appends one string to another

## NAME

**XmStringConcat** — A compound string function that appends one string to another

## SYNOPSIS

```
#include <Xm/Xm.h>
XmString XmStringConcat(
XmString s1,
XmString s2);
```

## DESCRIPTION

**XmStringConcat** copies *s2* to the end of *s1* and returns a copy of the resulting compound string. The original strings are preserved. The function will allocate space to hold the returned compound string. The application is responsible for managing the allocated space. The application can recover the allocated space by calling **XmStringFree**.

- *s1*

  Specifies the compound string to which a copy of *s2* is appended

- *s2*

  Specifies the compound string that is appended to the end of *s1*

## RETURN

Returns a new compound string.

## RELATED

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