DOKK / manpages / debian 12 / libmotif-dev / XmStringPutRendition.3.en
XmStringPutRendition(3) Library Functions Manual XmStringPutRendition(3)

XmStringPutRendition — A convenience function that places renditions around strings "XmStringPutRendition"

#include <Xm/Xm.h>
XmString XmStringPutRendition(
XmString string,
XmStringTag rendition);

XmStringPutRendition places matching Xm_STRING_COMPONENT_RENDITION_BEGIN and XmSTRING_COMPONENT_RENDITION_END components containing rendition around string. The original string is preserved.

Specifies the compound string to which begin and end rendition components should be added.
Specifies the rendition tag to be used in an XmSTRING_COMPONENT_RENDITION_BEGIN component which will begin the returned string and in an XmSTRING_COMPONENT_RENDITION_END component which will end it.

Returns a new compound string. The function allocates space to hold this returned compound string. When the application no longer needs the returned compound string, the application should call XmStringFree.

XmString(3).