Mega Code Archive
Categories
/
C
/
Code Snippets
Get the string length
#include
#include
int main(void) { char str[100]; gets(str); printf("Length is %d", strlen(str)); return 0; }