Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!ariel.unm.edu!cie!kgowen From: kgowen@cie.uoregon.edu (Kevin Gowen) Newsgroups: comp.os.msdos.programmer Subject: Displaying ascii 10 and 12 Message-ID: <1991May16.014520.16721@ariel.unm.edu> Date: 16 May 91 01:45:20 GMT Reply-To: kgowen@cie.uoregon.edu (Kevin Gowen) Organization: University of Oregon Campus Information Exchange Lines: 20 OK, here is what should be a simple problem, but it has me stumped: I'm trying to display an ascii chart on the screen: for (i=0; i<=255; i++) { printf("%3d %3x %c", i, i, char(i)); printf("\n"); } This works fine for *most* characters. However, decimal 10 is the newline character so when i=10 I am trying to print "\n" and all it does is, of course, is put the cursor on a new line. I don't get the ascii representation of 10, which is a rectangular box with a circle inside. How do I tell the computer that I want to *see* the newline char, not the results of a newline? There must be something real obvious that I'm missing. You can post replies here, as I read this group, or email is fine, too. Thanks in advance. -kevin kgowen@cie.uoregon.edu