Chapter 11. Working with Strings

In Chapter 6, “Working with Arrays,” you learned how to use character arrays as strings. But with C you can also handle strings by using pointers. You saw one example of this at the end of the previous chapter.

In this chapter you'll first learn more about these two ways of creating strings (as arrays and as pointers). Then you'll begin working with the many string functions found in the string.h C library file. To understand and use these functions, you'll run through a series of exercises, some of which merely demonstrate a concept, and others that show real-world uses of the ideas.

Get C Programming: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.