I have:

char word[10] = "donkey";

for example.

How can I count the number of not NULL characters in there? so I'd get 6 for this one? I could do a loop, but any other ways?