Array Length

PeterH:
Pass a struct containing the pointer and the length? Not substantially different to passing the length separately.

Well of course it isn't -- otherwise, it wouldn't work!