strlen( ) function: determine the length of a string.
#include <stdio.h> #include <string.h> char *s1="String length is measured in characters!"; int main( ) { printf("The string length is %d",strlen(s1)); return (0); }