Path: utzoo!utgpu!watserv1!watmath!att!rutgers!apple!usc!sdd.hp.com!elroy.jpl.nasa.gov!ncar!ico!auto-trol!marbru From: marbru@auto-trol.UUCP (Martin Brunecky) Newsgroups: comp.windows.x Subject: Re: motif XmString to char Keywords: motif, XmString,char Message-ID: <889@auto-trol.UUCP> Date: 17 Oct 90 22:58:23 GMT References: <2863@lamont.ldgo.columbia.edu> Reply-To: marbru@auto-trol.UUCP (Martin Brunecky) Organization: Auto-trol Technology, Denver Lines: 22 In article <2863@lamont.ldgo.columbia.edu> sohara@lamont.ldgo.columbia.edu (suzanne ohara) writes: >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. >Is this possible? I would appreciate any suggestions. > No, it should NOT be possible, as XmString may contain multibyte characters, i.e. potential imbeded NUL characters. In practice, however, you could do it assuming that you only have 8bit characters, or your multibyte characters don't have any NUL bytes ... Then, also note there is XConsortium document defining Compound Strings, and that is what XmString (in my naivity) should become (but I am not sure it already happened). -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky [BORN TO BASH UIL] marbru@auto-trol.COM (303) 252-2499 {...}ncar!ico!auto-trol!marbru Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404