Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!snorkelwacker!paperboy!osf!dbrooks From: dbrooks@osf.osf.org (David Brooks) Newsgroups: comp.windows.x Subject: Re: motif XmString to char Message-ID: <15121@paperboy.OSF.ORG> Date: 18 Oct 90 01:37:46 GMT References: <2863@lamont.ldgo.columbia.edu> Sender: news@OSF.ORG Reply-To: dbrooks@osf.org (David Brooks) Organization: Open Software Foundation Lines: 14 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. If you are interested only in left-to-right segments, you can use: result = XmStringGetLtoR(cstring, charset, &charp); Remember to XtFree(charp) when you no longer need it. -- David Brooks dbrooks@osf.org Systems Engineering, OSF uunet!osf.org!dbrooks