Pass array of unknown size to function

In reply to dave_59:

Thanks, I missed the two last lines.