String Functions in C — a practical guide to C string functions with clear examples you can reuse in real projects.
C Programming Tutorial Series (49/102). Prefer one article? Read the complete C programming tutorial.
Short description
Prefer bounded functions and explicit sizes to reduce overflows.
string.h tip
#include <string.h>
size_t n = strlen(name);
if (strcmp(name, "Asha") == 0) {
puts("match");
}