For a char [], I can easily get its length by:
char []
char a[] = \"aaaaa\"; int length = sizeof(a)/sizeof(char); // length=6
However,
Strlen command is working for me . You can try following code.
// char *s
unsigned int strLength=strlen(s);