Chapter 11. Character Strings and String Functions

You will learn about the following in this chapter:

  • Functions

    gets(), puts(), strcat(), strncat(), strcmp(), strncmp()
    strcpy(), strncpy(), sprint(), strchr(), isalnum()
    isalpha(), iscntrl(), isdigit(), isgraph()
    islower(), isprint(), ispunct(), isspace()
    isupper(), isxdigit()
    

In this chapter, you learn more about creating and using strings. You use several string and character functions from the C library and practice creating your own string functions. Also, you learn how to use command-line arguments.

Character strings are one of the most useful and important data types in C. You have been using character strings all along, but there still is much to learn about them. Of course, you already ...

Get C Primer Plus®, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.