A strlen( ) function in C is basically used to find whats the length of the string in the program.
![]() |
| strlen() in C |
In this article we will learn about strlen( ), string function in detail in which we will discuss following topics...
- strlen function in c
- strlen function in c example
- strlen function in c syntax
- header file for strlen function in c
strlen( ) function in C
strcpy( ) function is also known as a built in function or standard library function of C but it is widely know as string function. strlen( ) function is basically used to measure length of the string with excluding null character.
Header file for strlen( ) function in C
strlen( ) function is a built in function of C and it is define in <string.h> header file.
strlen( ) function in C syntax
strlen( str); or n=strlen(str);
where n is defined variable in which return value of strlen function is stored.
strlen( ) function in C example
A strlen( ) function in C is basically used to find whats the length of the string in the program.

