Category: Strings

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: Function Work 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()