Previous: 4.1 A New Data Type: char
Up: 4 Processing Character Data
Next: 4.3 New Control Constructs
Previous Page: 4.1.4 Strings vs Characters
Next Page: 4.2.1 Converting Letter Characters
So far we have merely read and printed characters and determined their attributes. Character processing requires manipulation of input characters in meaningful ways. For example, we may wish to convert all lower case letters to upper case, all upper case letters to lower case, digit characters to their numeric equivalents, extract words, extract integers, and so forth. In this section we develop several programs which manipulate characters, beginning with simple example functions and continuing with programs for more complex text processing.