Thread
:
Printing escape sequences using printf()?
View Single Post
Nov 3rd, 2005, 3:08 AM
#
5
InfoGeek
Professional Programmer
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power:
4
You can do something like
(
Toggle Plain Text
)
if(ch=='\n') printf("<new-line> - %3d",ch); else if(ch==' ') printf("<space> - %3d",ch);
if(ch=='\n') printf("<new-line> - %3d",ch); else if(ch==' ') printf("<space> - %3d",ch);
__________________
PFO - My daily dose of technology.
InfoGeek
View Public Profile
Find More Posts by InfoGeek