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

# XmFontListCopy(3)

A font list function that copies a font list

## NAME

**XmFontListCopy** — A font list function that copies a font list

## SYNOPSIS

```
#include <Xm/Xm.h>
XmFontList XmFontListCopy(
XmFontList fontlist);
```

## DESCRIPTION

**XmFontListCopy** creates a new font list consisting of the contents of the *fontlist* argument.

- *fontlist*

  Specifies a font list to be copied

## RETURN

Returns NULL if *fontlist* is NULL; otherwise, returns a new font list and allocates space to hold the font list. The application is responsible for managing the allocated space. The application can recover the allocated space by calling **XmFontListFree**.

## RELATED

[**XmFontList**(3)](/XmFontList/3.md) and [**XmFontListFree**(3)](/XmFontListFree/3.md).
