C library: string <string.h>
1 min read
The string
library in C programming language provides functions that
handle string values. With functions inside this C library, we can perform various operations on strings or character arrays. This C library is included with most C compilers.
Note: to use functions inside string library, we need to include the header file string.h into our program (#include <string.h>).
Here are some of the functions that we can find in this C library:
- C function: strchr Searches for a specific character in a character array.
- C function: strcmp Compares character arrays.
- C function: strlen Determines the length of a character array.
- C function: strncat Appends characters from one array to another up to a given number.
quizzes and articles!
Please fill out the form below to stay up-to-date to our newest interactive articles with quizzes.
Your subscription is on the way!