Mega Code Archive
Categories
/
C
/
Code Snippets
Returns the string length
//Declaration: size_t strlen(const char *str); //Return: returns the string length. The null terminator is not counted. #include
#include
int main(void){ printf("%d", strlen("Superman")); } /* 8*/