View Single Post
Old Nov 3rd, 2005, 3:08 AM   #5
InfoGeek
Professional Programmer
 
InfoGeek's Avatar
 
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4 InfoGeek is on a distinguished road
You can do something like
if(ch=='\n')
  printf("<new-line> - %3d",ch);
else if(ch==' ')
  printf("<space> - %3d",ch);
__________________
PFO - My daily dose of technology.
InfoGeek is offline   Reply With Quote