Tagged: string handling

String handling functions in C 22

String handling functions in C

In this article, you will understand different string handling functions in C. By the end of this article, you will learn how to write C programs to perform following string operations –  find length of a string, compare 2 strings, copy one string to another, concatenate 2 strings etc. Following are some of the useful string handling functions in C. strlen() strcpy() strncpy() strcat() strncat() strcmp() strncmp() strcmpi() strncmpi() These string handling functions are defined in string.h header file. Hence you need to include this header file whenever you use these string handling functions in your C program. Following are...