Previous Slide Accessing/Changing Strings Next Slide

Because a string is really just an array, we must access or change it by dealing with each element (like other arrays).

This means it becomes tedious to perform common string operations, i.e.,

To change the value of a string,
we must change several characters individually.
To find the length of the string,
we must search for the nul character.

Because these are such common operations, there are library functions that do these things for us...


The C String Library - string.h (aka cstring)
Copyright © 1993-2000 by Robert I. Pitts <rip@bu.edu> All Rights Reserved.