XmString-to-String

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
XmString-to-String

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.

leetuckert

Use XmStringLength(3X). See the man page for XmString.

ooolongcha

try XmCvtXmStringToCT..

ICS_support

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.