what do you mean by
"
This only works on real arrays.
Pointers to arrays (either by function call parameter or allocated memory) do not work in this way."

gooddevil can you not use a linked list, you can keep count of the number of entries made by the user