Strings and the Standard Library

In this tutorial, we will learn about the predefined function declared in the header file string.h.

The standard library contains many functions for manipulating strings. Some of the functions:

FunctionWork of Function
strlen()Calculates the length of string
strcpy()Copies a string to another string
strcat()Concatenates(joins) two strings
strcmp()Compares two string
strlwr()Converts string to lowercase
strupr()Converts string to uppercase

Above function will be available once you include  “string.h” header file.

#include <string.h>