[SOLVED]Getting array lenght inside a function

What you can do is define a class that wraps the C array that does this administration, even dynamic. Check the String class to see how things can be done (although I advice not to use these dynamic classes but that is another discussion)