Submitted by Anonymous on Fri, 02/22/2002 - 01:29. Developers
I need to convert XmString to String or char *. Can I check the lenght of the XmString, what kind of other functions could be done with XmString.
Tue, 07/03/2012 - 16:56
#1
XmString-to-String
Use XmStringLength(3X). See the man page for XmString.
try XmCvtXmStringToCT..
The right way to do this is to open the string context and fetch each segment in turn. If you know a bit about how the XmString was constructed, however, you may be able to use XmStringGetLtoR() and be done with it. This function can be used for simple strings of the sort that were made from char* data without newlines.