Solaris Common Desktop Environment: Motif Transition Guide

To Convert from XmString to Character String

To convert from XmString to a character string, you must traverse the compound string and retrieve each segment individually. See section 19.3.3 of the Motif Programming Manual, Volume 6A, which contains a code sample that performs this conversion.

Do not use XmStringGetLtoR() to convert from XmString to a character string. This function assumes the text is oriented left-to-right.