Path: utzoo!attcan!uunet!aplcen!samsung!usc!ucsd!ucbvax!bloom-beacon!morgan.COM!jordan From: jordan@morgan.COM (Jordan Hayes) Newsgroups: comp.windows.x Subject: Re: motif XmString to char Message-ID: <9010191623.AA03058@s6.Morgan.COM> Date: 19 Oct 90 16:23:14 GMT References: <15121@paperboy.OSF.ORG> Sender: daemon@athena.mit.edu (Mr Background) Organization: Morgan Stanley, & Co., Inc. / New York City, NY Lines: 27 Suzanne O'Hara asks: I am learning to program with motif and have run into what seems a very simple problem. I have not been able to find a way to convert a motif XmString to a regular C char string. To which David Brooks writes: If you are interested only in left-to-right segments, you can use: result = XmStringGetLtoR(cstring, charset, &charp); I have always seen this defined as Boolean XmStringGetLtoR(string, charset, text) XmString string; XmStringCharSet charset; char **text; My understanding of XmStringGetLtoR is used to search `string' to see if there is a segment that matches `text' and if so, returns TRUE. I believe she wanted the "opposite" of XmStringCreate ... if this (when *text == (char *)NULL) *is* the equivalent of what I posted yesterday, please document it better! /jordan