Path: utzoo!attcan!uunet!lll-winken!brutus.cs.uiuc.edu!tut.cis.ohio-state.edu!bloom-beacon!GATEWAY.MITRE.ORG!sbuck From: sbuck@GATEWAY.MITRE.ORG (Steve Buck) Newsgroups: comp.windows.x Subject: Printing characters Message-ID: <8907271952.AA11726@gateway.mitre.org> Date: 27 Jul 89 19:52:32 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 23 I'm trying to print a character at coordinates (x,y). The following code gives me a segmentation fault because I'm trying to pass a single character instead of a pointer to a string: print_char(x1, y1, pr_char) float x1, y1; char pr_char; { XDrawString(display, displaywin, gc, (int)x1, (int)y1, pr_char, 1); } Could someone please tell me how I should go about printing the single character "pr_char"? Thanks, -- -- Steve Buck The MITRE Corporation, Networking Center McLean, Virginia phone: (703) 883-5574 email: sbuck@gateway.mitre.org