Path: utzoo!attcan!uunet!cs.utexas.edu!yale!mintaka!spdcc!tauxersvilli!alphalpha!nazgul From: nazgul@alphalpha.com (Kee Hinckley) Newsgroups: comp.windows.x Subject: Re: motif XmString to char Message-ID: <1990Oct20.114744.5334@alphalpha.com> Date: 20 Oct 90 11:47:44 GMT References: <15121@paperboy.OSF.ORG> <9010191623.AA03058@s6.Morgan.COM> Organization: asi Lines: 24 In article <9010191623.AA03058@s6.Morgan.COM> jordan@morgan.COM (Jordan Hayes) writes: >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 No, it searches the string and returns a pointer to the first segment that matches charset. Note that since \n is represented by a separator this means it only returns the first line, so your solution (looping through the segments) is actually more generically correct if you don't know whether the value is multi-line or single line (or multi-font). However it assumes that you know what the charset is (or don't care). -kee -- Alphalpha Software, Inc. | motif-request@alphalpha.com nazgul@alphalpha.com |----------------------------------- 617/646-7703 (voice/fax) | Proline BBS: 617/641-3722 I'm not sure which upsets me more; that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.