Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Printing characters Message-ID: <8907272022.AA29078@expo.lcs.mit.edu> Date: 27 Jul 89 20:22:06 GMT References: <8907271952.AA11726@gateway.mitre.org> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 25 > Could someone please tell me how I should go about printing the single > character "pr_char"? print_char(x1, y1, pr_char) float x1, y1; char pr_char; { XDrawString(display, displaywin, gc, (int)x1, (int)y1, &pr_char, 1); } ^ | ******* Just passing the character by reference instead of by value should do the trick. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213