Strings & Character HandlingLast Updated: Aug 23, 2026
c programmingstringsstring.hstrlen
String Handling Functions in C (string.h)
Because strings in C are just arrays of characters, standard operations like copying a string or finding its length are not as simple as typing stringA = stringB. You cannot use standard mathematical operators on arrays!
To solve this, C provides a standard library dedicated entirely to string manipulation. To use these functions, you must include the <string.h> header file at the top of your program.
Let's look at the four most important string functions that you will use constantly.