Number of elements in an array char What kind of function can I use to know how many elements are in an array char?

sizeof() gives the number of 'spaces' available so it doesn't work for me.
You want strlen.

char foo [100] = "bar";
Serial.println (strlen (foo));   // --&gt; prints 3