View Single Post
Old Mar 13th, 2008, 2:10 PM   #2
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 548
Rep Power: 4 Benoit is on a distinguished road
Re: Deleting chracters

Point to the character in the string you want to remove, replace it with the next character in the string, then move to the next character, replace that one with the one after it, and so on. If the string is null terminated, don't forget to add a null byte.

To convert an ASCII character to uppercase, simply subtract 32 (The difference between a and A on the ascii table).
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote