Mega Code Archive
Categories
/
C Tutorial
/
String h
Strlen
Item Value Header filestring.h Declarationsize_t strlen(const char *str); Returnreturns the string length. The null terminator is not counted. #include
#include
int main(void){ printf("%d", strlen("hello")); } 5