View Single Post
Old Nov 3rd, 2005, 10:08 PM   #6
bivhitscar
Hobbyist Programmer
 
bivhitscar's Avatar
 
Join Date: Oct 2005
Location: Melbourne, Australia
Posts: 126
Rep Power: 3 bivhitscar is on a distinguished road
Quote:
Originally Posted by InfoGeek
You can do something like
if(ch=='\n')
  printf("<new-line> - %3d",ch);
else if(ch==' ')
  printf("<space> - %3d",ch);
Yeh, I just ended up using a switch. Thanks though.
__________________
it's ironic considerate rarity patron of love higher knowledge engulfs me...
bivhitscar is offline   Reply With Quote