Path: utzoo!attcan!uunet!wugate!wuarchive!brutus.cs.uiuc.edu!apple!sun-barr!newstop!sun!eureka!argv From: argv%eureka@Sun.COM (Dan Heller) Newsgroups: comp.windows.x Subject: Re: Printing characters Message-ID: <118375@sun.Eng.Sun.COM> Date: 28 Jul 89 17:16:18 GMT References: <8907271952.AA11726@gateway.mitre.org> Sender: news@sun.Eng.Sun.COM Reply-To: argv@sun.UUCP (Dan Heller) Lines: 14 In article sbuck@GATEWAY.MITRE.ORG (Steve Buck) writes: > gives me a segmentation fault because I'm trying to pass a single character > instead of a pointer to a string: > > XDrawString(display, displaywin, gc, (int)x1, (int)y1, > pr_char, 1); Try passing the address of pr_char: > XDrawString(display, displaywin, gc, (int)x1, (int)y1, > &pr_char, 1); dan ----- My postings reflect my opinion only -- not the opinion of any company.