C++ provides two formats for text strings. One is the old C-string type from the C language, supported for backward compatibility; the other is the Standard Template Library (STL) string class, which is safer, more convenient, and easier to use. (See Chapter 14, “The C++ STL String Class.”)
This chapter presents the C-string library functions, because sometimes it is necessary to support old code. Moreover, the individual-character functions, also presented in this chapter, are useful with all kinds of strings.
This chapter covers
C-strings and functions that manipulate them
Individual-character functions ...