strlen : strlen « string.h « C Tutorial






ItemValue
Header filestring.h
Declarationsize_t strlen(const char *str);
Returnreturns the string length. The null terminator is not counted.


#include<string.h>
#include<stdio.h> 

int main(void){
   printf("%d", strlen("hello"));
}
5








24.13.strlen
24.13.1.strlen