DOKK / manpages / debian 10 / libmotif-dev / XmFontListCopy.3.en
XmFontListCopy(3) Library Functions Manual XmFontListCopy(3)

XmFontListCopy — A font list function that copies a font list "XmFontListCopy" "font list functions" "XmFontListCopy"

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

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

Specifies a font list to be copied

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.

XmFontList(3) and XmFontListFree(3).